函数逻辑报告

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

函数原型:int vfs_statx_fd(unsigned int fd, struct kstat *stat, unsigned int request_mask, unsigned int query_flags)

返回类型:int

参数:

类型参数名称
unsigned intfd
struct kstat *stat
unsigned intrequest_mask
unsigned intquery_flags
138  error等于负EBADF
140  如果query_flags按位与KSTAT_QUERY_FLAGS的反则返回:负EINVAL
143  f等于fdget_raw(fd)
144  如果file
145  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)
147  fdput(f)
149  返回:error