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:xattr GET operation for in-memory/pseudo filesystems

Proto:int simple_xattr_get(struct simple_xattrs *xattrs, const char *name, void *buffer, size_t size)

Type:int

Parameter:

TypeParameterName
struct simple_xattrs *xattrs
const char *name
void *buffer
size_tsize
836  ret = -ENODATA
838  spin_lock( & lock)
840  If strcmp(name, name) Then Continue
843  ret = size
844  If buffer Then
845  If size < size Then ret = -ERANGE
847  Else memcpy(buffer, value, size)
850  Break
852  spin_unlock( & lock)
853  Return ret