函数逻辑报告

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

函数原型:int vfs_getattr_nosec(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
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, 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  如果IS_NOATIME(inode)则 What fields the user got 与等于Want/got stx_atime 的反
77  如果IS_AUTOMOUNT(inode)则attributes或等于Dir: Automount trigger
80  如果getattr则返回: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  返回:0
调用者
名称描述
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)