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:This is a copy of sys_ustat, just dealing with a structure layout.* Given how simple this syscall is that apporach is more maintainable* than the various conversion hacks.

Proto:COMPAT_SYSCALL_DEFINE2(ustat, unsigned, dev, struct compat_ustat __user *, u)

Type:

Parameter:Nothing

390  err = vfs_ustat(new_decode_dev(dev), & sbuf)
391  If err Then Return err
394  memset( & tmp, 0, sizeof(structcompat_ustat))
395  f_tfree = f_bfree
396  f_tinode = f_ffree
397  If copy_to_user(u, & tmp, sizeof(structcompat_ustat)) Then Return -EFAULT
399  Return 0