Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\xattr.c Create Date:2022-07-28 20:09:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:vfs_getxattr

Proto:ssize_t vfs_getxattr(struct dentry *dentry, const char *name, void *value, size_t size)

Type:ssize_t

Parameter:

TypeParameterName
struct dentry *dentry
const char *name
void *value
size_tsize
318  inode = Where the name belongs to - NULL is * negative
321  error = Check permissions for extended attribute access. This is a bit complicated* because different namespaces have very different rules.
322  If error Then Return error
325  error = security_inode_getxattr(dentry, name)
326  If error Then Return error
329  If Not strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN) Then
331  suffix = name + XATTR_SECURITY_PREFIX_LEN
332  ret = xattr_getsecurity(inode, suffix, value, size)
337  If ret == -EOPNOTSUPP Then Go to nolsm
339  Return ret
341  nolsm :
342  Return __vfs_getxattr(dentry, inode, name, value, size)
Caller
NameDescribe
getxattrExtended attribute GET operations