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 LIST operation for in-memory/pseudo filesystems

Proto:ssize_t simple_xattr_list(struct inode *inode, struct simple_xattrs *xattrs, char *buffer, size_t size)

Type:ssize_t

Parameter:

TypeParameterName
struct inode *inode
struct simple_xattrs *xattrs
char *buffer
size_tsize
946  trusted = Check operation authority
948  remaining_size = size
949  err = 0
952  If IS_POSIXACL(inode) Then
953  If i_acl Then
956  If err Then Return err
959  If i_default_acl Then
962  If err Then Return err
968  spin_lock( & lock)
971  If Not trusted && xattr_is_trusted(name) Then Continue
974  err = xattr_list_one( & buffer, & remaining_size, name)
975  If err Then Break
978  spin_unlock( & lock)
980  Return If err Then err Else size - remaining_size