Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\statfs.c Create Date:2022-07-28 20:12:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_statfs_native

Proto:static int do_statfs_native(struct kstatfs *st, struct statfs __user *p)

Type:int

Parameter:

TypeParameterName
struct kstatfs *st
struct statfs __user *p
128  If size of buf == size of st Then memcpy( & buf, st, size of st )
130  Else
131  If (sizeof f_blocks == 4) Then
132  If ( f_blocks | f_bfree | f_bavail | f_bsize | f_frsize) & 0xffffffff00000000ULL Then Return -EOVERFLOW
140  If f_files != -1 && f_files & 0xffffffff00000000ULL Then Return -EOVERFLOW
143  If f_ffree != -1 && f_ffree & 0xffffffff00000000ULL Then Return -EOVERFLOW
148  f_type = f_type
149  f_bsize = f_bsize
150  f_blocks = f_blocks
151  f_bfree = f_bfree
152  f_bavail = f_bavail
153  f_files = f_files
154  f_ffree = f_ffree
155  f_fsid = f_fsid
156  f_namelen = f_namelen
157  f_frsize = f_frsize
158  f_flags = f_flags
159  memset(f_spare, 0, size of f_spare )
161  If copy_to_user(p, & buf, size of buf ) Then Return -EFAULT
163  Return 0
Caller
NameDescribe
SYSCALL_DEFINE2
SYSCALL_DEFINE2