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:xattr_getsecurity

Proto:static ssize_t xattr_getsecurity(struct inode *inode, const char *name, void *value, size_t size)

Type:ssize_t

Parameter:

TypeParameterName
struct inode *inode
const char *name
void *value
size_tsize
236  void * buffer = NULL
239  If Not value || Not size Then
240  len = security_inode_getsecurity(inode, name, & buffer, false)
241  Go to out_noalloc
244  len = security_inode_getsecurity(inode, name, & buffer, true)
245  If len < 0 Then Return len
247  If size < len Then
248  len = -ERANGE
249  Go to out
251  memcpy(value, buffer, len)
252  out :
253  kfree(buffer)
254  out_noalloc :
255  Return len
Caller
NameDescribe
vfs_getxattr