函数逻辑报告

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

函数原型:int vfs_statx(int dfd, const char __user *filename, int flags, struct kstat *stat, unsigned int request_mask)

返回类型:int

参数:

类型参数名称
intdfd
const char __user *filename
intflags
struct kstat *stat
unsigned intrequest_mask
172  error等于负EINVAL
173  lookup_flags等于llow links at the end 按位或rce terminal automount
175  如果flags按位与Do not follow symbolic links. 按位或Suppress terminal automount traversal 按位或Allow empty relative pathname 按位或KSTAT_QUERY_FLAGS的值的反的值不等于0则返回:负EINVAL
179  如果flags按位与Do not follow symbolic links. lookup_flags与等于llow links at the end 的反
181  如果flags按位与Suppress terminal automount traversal lookup_flags与等于rce terminal automount 的反
183  如果flags按位与Allow empty relative pathname lookup_flags或等于accept empty path [user_... only]
186  retry :
187  error等于user_path_at(dfd, filename, lookup_flags, & path)
188  如果error则转到:out
191  error等于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)
192  path_put( & path)
193  如果ry_estale - determine whether the caller should retry an operation*@error: the error that would currently be returned*@flags: flags being used for next lookup attempt* Check to see if the error code was -ESTALE, and then determine whether
194  lookup_flags或等于ll ->d_revalidate() to trust no cache
195  转到:retry
197  out :
198  返回:error
调用者
名称描述
SYSCALL_DEFINE5sys_statx - System call to get enhanced stats*@dfd: Base directory to pathwalk from *or* fd to stat.*@filename: File to stat or "" with AT_EMPTY_PATH*@flags: AT_* flags to control pathwalk.*@mask: Parts of statx struct actually required.