函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:generic_fillattr - Fill in the basic attributes from the inode struct*@inode: Inode to use as the source*@stat: Where to fill in the attributes* Fill in the basic attributes in the kstat structure from data that's to be* found on the VFS inode structure

函数原型:void generic_fillattr(struct inode *inode, struct kstat *stat)

返回类型:void

参数:

类型参数名称
struct inode *inode
struct kstat *stat
35  dev等于s_dev
36  ino等于Stat data, not accessed from path walking
37  mode等于i_mode
38  nlink等于i_nlink
39  uid等于i_uid
40  gid等于i_gid
41  rdev等于i_rdev
42  size等于NOTE: in a 32bit arch with a preemptable kernel and* an UP compile the i_size_read/write must be atomic* with respect to the local cpu (unlike with preempt disabled),* but they don't need to be atomic with respect to other cpus like in* true SMP (so they
43  atime等于i_atime
44  mtime等于i_mtime
45  ctime等于i_ctime
46  Preferred I/O size 等于i_blocksize(inode)
47  blocks等于i_blocks
调用者
名称描述
vfs_getattr_nosecvfs_getattr_nosec - getattr without security checks*@path: file to get attributes from*@stat: structure to return attributes in*@request_mask: STATX_xxx flags indicating what the caller wants*@query_flags: Query mode (KSTAT_QUERY_FLAGS)
simple_getattr
empty_dir_getattr