vfs_posix_acl_to_xattr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 a struct 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's void *, mysterious but valid.
  • size β€” size of buffer. size_t behavior, 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:


byeee 🫢 β€” source/version: ./fs, date: October 2026, page: vfs_posix_acl_to_xattr(9). Mwah! πŸ’‹

πŸ“¦ where this page comes from