函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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)

函数原型:int vfs_getattr(const struct path *path, struct kstat *stat, unsigned int request_mask, unsigned int query_flags)

返回类型:int

参数:

类型参数名称
const struct path *path
struct kstat *stat
unsigned intrequest_mask
unsigned intquery_flags
115  retval等于security_inode_getattr(path)
116  如果retval则返回:retval
118  返回: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)
调用者
名称描述
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