sys_listxattr [fs/xattr.c]
List extended attribute names. Extended attributes are name:value pairs associated with inodes (files, directories, symlinks, etc). They are extensions to the normal attributes which are associated with all inodes in the system (i.e. the sys_stat data). Arguments
eax | 232
ebx | Pointer to a null-terminated string that specifies the path.
ecx | Pointer to a buffer which will receive the list. The list is the set of (null-terminated) names, one after the other. Names of extended attributes to which the calling process does not have access may be omitted from the list. A single extended attribute name is a simple null-terminated string. The name includes a namespace prefix; there may be several, disjoint namespaces associated with an individual inode. The list of names is returned as an unordered array of null-terminated character strings (attribute names are separated by null bytes ('\0')), like this: `user.name1\0system.name1\0user.name2\0` Filesystems like ext2, ext3 and XFS which implement POSIX ACLs using extended attributes, might return a list like this: `system.posix_acl_access\0system.posix_acl_default\0`
edx | Size of the buffer pointed by edx. If this value is 0, then the current size of the list of extended attribute names will be returned without actually filling the buffer.
Return values If the system call succeeds the return value is the size of the extended attribute name list. If the system call fails the return value is one of the following errno values:
`-ENOATTR` | `The named attribute does not exist, or the process has no access to this attribute.`
`-ERANGE` | `Size of the buffer is too small to hold the result.`
`-ENOTSUP` | `Extended attributes are not supported by the filesystem, or are disabled.`
`-EACCES` | `Search permission is denied for one of the directories in the path prefix.`
`-ELOOP` | `Too many symbolic links encountered while traversing the path.`
`-ENAMETOOLONG` | `File name too long.`
`-ENOENT` | `A component of the path does not exist, or the path is an empty string.`
`-ENOMEM` | `Out of memory (i.e. kernel memory).`
`-ENOTDIR` | `A component of the path is not a directory.`
Remarks n/a Compatibility n/a