vfs_posix_acl_to_xattr(9)
πΈ NAME πΈ
Okay bestie, you're on the vfs_posix_acl_to_xattr(9) page in the Kernel API Manual, and the function is literally vfs_posix_acl_to_xattr β convert from kernel to userspace representation. No cap, that's the whole name vibe. π
β¨ SYNOPSIS β¨
ssize_t vfs_posix_acl_to_xattr (struct mnt_idmap *idmap , struct inode
*inode , const struct posix_acl *acl , void *buffer , size_t size );
π ARGUMENTS π
idmapβ idmap of the mount. It's astruct mnt_idmap *, iconic.inodeβ inode the posix acls are set on. Type check:struct inode *.aclβ the posix acls as represented by the vfs. Yes,const struct posix_acl *.bufferβ the buffer into which to convert acl. It'svoid *, mysterious but valid.sizeβ size of buffer.size_tbehavior, fr fr.
π¦ DESCRIPTION π¦
So what it actually does: this converts acl from the VFS representation in the filesystem idmapping to the uapi form reportable to userspace. And mount and caller idmappings are handled appropriately. Periodt. β¨
π₯ RETURN π₯
On success, it gives you the size of the stored uapi posix acls. On error, it gives you a negative errno. That's the return vibe, no surprises. π
π SEE ALSO π
The see-also squad, no skips:
- Kernel file
./fs/posix_acl.c posix_acl_chmod(9)posix_acl_update_mode(9)posix_acl_from_xattr(9)vfs_set_acl(9)vfs_get_acl(9)vfs_remove_acl(9)
byeee π«Ά β source/version: ./fs, date: October 2026, page: vfs_posix_acl_to_xattr(9). Mwah! π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms