Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:void generic_fillattr(struct inode *inode, struct kstat *stat)

Type:void

Parameter:

TypeParameterName
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
Caller
NameDescribe
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