Просмотр исходного кода

Updated linux/kernel/api/vfs_stat

dyokunev лет назад: 8
Родитель
Сommit
c7c99a6ae1
1 измененных файлов с 11 добавлено и 1 удалено
  1. 11 1
      linux/kernel/api/vfs_stat.md

+ 11 - 1
linux/kernel/api/vfs_stat.md

@@ -1,11 +1,15 @@
 I don't know if this correct or not, but here a manpage ugly draft:
 I don't know if this correct or not, but here a manpage ugly draft:
 
 
+#### SYNOPSIS
+
 ```
 ```
 #include <linux/uaccess.h>
 #include <linux/uaccess.h>
 
 
 vfs_stat ( char *path, struct kstat *kstat )
 vfs_stat ( char *path, struct kstat *kstat )
 ```
 ```
 
 
+#### DESCRIPTION
+
 `vfs_stat()` — retrieve information about the file pointed to by `path`. Read `man 2 stat`.
 `vfs_stat()` — retrieve information about the file pointed to by `path`. Read `man 2 stat`.
 
 
 About `struct kstat` see file linux-source/include/linux/stat.h:
 About `struct kstat` see file linux-source/include/linux/stat.h:
@@ -45,6 +49,8 @@ struct kstat {
 
 
 Function source code: http://lxr.linux.no/linux+v4.6.4/fs/stat.c#L121
 Function source code: http://lxr.linux.no/linux+v4.6.4/fs/stat.c#L121
 
 
+#### EXAMPLES
+
 A wrapper example:
 A wrapper example:
 
 
 ```
 ```
@@ -78,4 +84,8 @@ static int __init my_module_init()
 }
 }
 
 
 module_init ( my_module_init )
 module_init ( my_module_init )
-```
+```
+
+#### RETURN VALUE
+
+On success, `vfs_stat()` return zero; otherwise non-zero.