Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Find the xattr_handler with the matching prefix.

Proto:static const struct xattr_handler *xattr_resolve_name(struct inode *inode, const char **name)

Type:struct xattr_handler

Parameter:

TypeParameterName
struct inode *inode
const char **name
56  handlers = s_xattr
59  If Not (i_opflags & IOP_XATTR) Then
60  If Value for the false possibility is greater at compile time(is an inode errored) Then Return ERR_PTR( - EIO)
62  Return ERR_PTR( - EOPNOTSUPP)
67  n = strcmp_prefix( * name, xattr_prefix(handler))
68  If n Then
69  If Not prefix ^ Not n Then
70  If n Then Continue
72  Return ERR_PTR( - EINVAL)
74  name = n
75  Return handler
78  Return ERR_PTR( - EOPNOTSUPP)
Caller
NameDescribe
__vfs_setxattr
vfs_getxattr_allocvfs_getxattr_alloc - allocate memory, if necessary, before calling getxattr* Allocate memory, if not already allocated, or re-allocate correct size,* before retrieving the extended attribute.
__vfs_getxattr
__vfs_removexattr