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

Proto:int vfs_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
115  retval = security_inode_getattr(path)
116  If retval Then Return retval
118  Return 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)
Caller
NameDescribe
vfs_statx_fdvfs_statx_fd - Get the enhanced basic attributes by file descriptor*@fd: The file descriptor referring to the file of interest*@stat: The result structure to fill in
vfs_statxvfs_statx - Get basic and extra attributes by filename*@dfd: A file descriptor representing the base dir for a relative filename*@filename: The name of the file of interest*@flags: Flags to control the query*@stat: The result structure to fill in