Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:put_compat_statfs

Proto:static int put_compat_statfs(struct compat_statfs __user *ubuf, struct kstatfs *kbuf)

Type:int

Parameter:

TypeParameterName
struct compat_statfs __user *ubuf
struct kstatfs *kbuf
265  If (sizeof f_blocks == 4) Then
266  If ( f_blocks | f_bfree | f_bavail | f_bsize | f_frsize) & 0xffffffff00000000ULL Then Return -EOVERFLOW
271  If f_files != 0xffffffffffffffffULL && f_files & 0xffffffff00000000ULL Then Return -EOVERFLOW
274  If f_ffree != 0xffffffffffffffffULL && f_ffree & 0xffffffff00000000ULL Then Return -EOVERFLOW
278  memset( & buf, 0, sizeof(structcompat_statfs))
279  f_type = f_type
280  f_bsize = f_bsize
281  f_blocks = f_blocks
282  f_bfree = f_bfree
283  f_bavail = f_bavail
284  f_files = f_files
285  f_ffree = f_ffree
286  SunOS ignores this field. = f_namelen
287  val[0] = val[0]
288  val[1] = val[1]
289  f_frsize = f_frsize
290  f_flags = f_flags
291  If copy_to_user(ubuf, & buf, sizeof(structcompat_statfs)) Then Return -EFAULT
293  Return 0
Caller
NameDescribe
COMPAT_SYSCALL_DEFINE2The following statfs calls are copies of code from fs/statfs.c and* should be checked against those from time to time
COMPAT_SYSCALL_DEFINE2