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:vfs_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)

Proto:int vfs_getattr_nosec(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
67  inode = d_backing_inode - Get upper or lower inode we should be using*@upper: The upper layer* This is the helper that should be used to get at the inode that will be used* if this dentry were to be opened as a file. The inode may be on the upper
69  memset(stat, 0, size of stat )
70  What fields the user got |= The stuff in the normal stat struct
71  request_mask &= All currently supported flags
72  query_flags &= KSTAT_QUERY_FLAGS
75  If IS_NOATIME(inode) Then What fields the user got &= ~Want/got stx_atime
77  If IS_AUTOMOUNT(inode) Then attributes |= Dir: Automount trigger
80  If getattr Then Return getattr(path, stat, request_mask, query_flags)
84  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
85  Return 0
Caller
NameDescribe
vfs_getattrvfs_getattr - Get the enhanced basic attributes of a file*@path: The file of interest*@stat: Where to return the statistics*@request_mask: STATX_xxx flags indicating what the caller wants*@query_flags: Query mode (KSTAT_QUERY_FLAGS)