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_setxattr

Proto:int vfs_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)

Type:int

Parameter:

TypeParameterName
struct dentry *dentry
const char *name
const void *value
size_tsize
intflags
212  inode = Where the name belongs to - NULL is * negative
215  error = Check permissions for extended attribute access. This is a bit complicated* because different namespaces have very different rules.
216  If error Then Return error
219  inode_lock(inode)
220  error = security_inode_setxattr(dentry, name, value, size, flags)
221  If error Then Go to out
224  error = __vfs_setxattr_noperm - perform setxattr operation without performing* permission checks
226  out :
227  inode_unlock(inode)
228  Return error
Caller
NameDescribe
setxattrExtended attribute SET operations