Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Allocate new xattr and copy in the value; but leave the name to callers.

Proto:struct simple_xattr *simple_xattr_alloc(const void *value, size_t size)

Type:struct simple_xattr

Parameter:

TypeParameterName
const void *value
size_tsize
816  len = size of new_xattr + size
817  If len < size of new_xattr Then Return NULL
820  new_xattr = Allocation memory
821  If Not new_xattr Then Return NULL
824  size = size
825  memcpy(value, value, size)
826  Return new_xattr
Caller
NameDescribe
simple_xattr_setsimple_xattr_set - xattr SET operation for in-memory/pseudo filesystems*@xattrs: target simple_xattr list*@name: name of the extended attribute*@value: value of the xattr