函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vfs_getxattr

函数原型:ssize_t vfs_getxattr(struct dentry *dentry, const char *name, void *value, size_t size)

返回类型:ssize_t

参数:

类型参数名称
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  如果error则返回:error
325  error等于security_inode_getxattr(dentry, name)
326  如果error则返回:error
329  如果非字符串指定长度比较
331  suffix等于nameXATTR_SECURITY_PREFIX_LEN
332  ret等于xattr_getsecurity(inode, suffix, value, size)
337  如果ret恒等于负EOPNOTSUPP则转到:nolsm
339  返回:ret
341  nolsm :
342  返回:__vfs_getxattr(dentry, inode, name, value, size)
调用者
名称描述
getxattrExtended attribute GET operations