Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:simple_getattr

Proto:int simple_getattr(const struct path *path, struct kstat *stat, unsigned int request_mask, unsigned int query_flags)

Type:int

Parameter:

TypeParameterName
const struct path *path
struct kstat *stat
unsigned intrequest_mask
unsigned intquery_flags
30  inode = d_inode - Get the actual inode of this dentry*@dentry: The dentry to query* This is the helper normal filesystems should use to get at their own inodes* in their own dentries and ignore the layering superimposed upon them.
31  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
32  blocks = nrpages << PAGE_SHIFT determines the page size - 9
33  Return 0