函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\xattr.c Create Date:2022-07-29 10:40:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:vfs_setxattr

函数原型:int vfs_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)

返回类型:int

参数:

类型参数名称
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  如果error则返回:error
219  inode_lock(inode)
220  error等于security_inode_setxattr(dentry, name, value, size, flags)
221  如果error则转到:out
224  error等于__vfs_setxattr_noperm - perform setxattr operation without performing* permission checks
226  out :
227  inode_unlock(inode)
228  返回:error
调用者
名称描述
setxattrExtended attribute SET operations