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:Combine the results of the list() operation from every xattr_handler in the* list.

Proto:ssize_t generic_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size)

Type:ssize_t

Parameter:

TypeParameterName
struct dentry *dentry
char *buffer
size_tbuffer_size
752  handlers = s_xattr
753  size = 0
755  If Not buffer Then
757  If Not name || list && Not list(dentry) Then Continue
760  size += strlen - Find the length of a string*@s: The string to be sized + 1
762  Else
763  buf = buffer
767  If Not name || list && Not list(dentry) Then Continue
770  len = strlen - Find the length of a string*@s: The string to be sized
771  If len + 1 > buffer_size Then Return -ERANGE
773  memcpy(buf, name, len + 1)
774  buf += len + 1
775  buffer_size -= len + 1
777  size = buf - buffer
779  Return size