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

Proto:int vfs_statx_fd(unsigned int fd, struct kstat *stat, unsigned int request_mask, unsigned int query_flags)

Type:int

Parameter:

TypeParameterName
unsigned intfd
struct kstat *stat
unsigned intrequest_mask
unsigned intquery_flags
138  error = -EBADF
140  If query_flags & ~KSTAT_QUERY_FLAGS Then Return -EINVAL
143  f = fdget_raw(fd)
144  If file Then
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  Return error