函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\statfs.c Create Date:2022-07-29 10:43:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:COMPAT_SYSCALL_DEFINE2(ustat, unsigned, dev, struct compat_ustat __user *, u)

返回类型:

参数:

390  err等于vfs_ustat(new_decode_dev(dev), & sbuf)
391  如果err则返回:err
394  memset( & tmp, 0, sizeof(structcompat_ustat))
395  f_tfree等于f_bfree
396  f_tinode等于f_ffree
397  如果copy_to_user(u, & tmp, sizeof(structcompat_ustat))则返回:负EFAULT
399  返回:0