nfs_stream_decode_acl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nfs_stream_decode_acl(9) β€” like, the NFSv3 ACL decoder, bestie

okay so real talk: this is a page straight out of the Kernel API Manual, and the star of the show is nfs_stream_decode_acl. she decodes an NFSv3 ACL and she does it iconically. no cap. πŸŽ€


✨ NAME ✨

nfs_stream_decode_acl β€” Decode an NFSv3 ACL. that's it, that's the vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

bool nfs_stream_decode_acl (struct xdr_stream *xdr , unsigned int
*aclcnt , struct posix_acl **pacl );

πŸ’– ARGUMENTS πŸ’–

  • xdr β€” an xdr_stream positioned at an encoded ACL. like, she's already standing at the door, you just gotta let her in 🫢
  • aclcnt β€” OUT: count of ACEs in decoded posix_acl. she tells you how many lil ACEs she found πŸ’…
  • pacl β€” OUT: a dynamically-allocated buffer containing the decoded posix_acl. this one's the main character, fr fr πŸ‘‘

πŸ”₯ DESCRIPTION πŸ”₯

so the whole point is the return values, and they're giving two very different energies:

  • false: The encoded ACL is not valid. πŸ’€ awkward. the vibes are off, nothing to see here.
  • true: pacl contains a decoded ACL, and xdr is advanced. slay!! it worked, and xdr has officially moved on to the next thing ✨
🚨 okay bestie, listen, this is the important part: On a successful return, caller must release *pacl using posix_acl_release. it's a dynamically-allocated buffer, so if you forget to release it that's a literal memory leak and we do not do those. periodt. 🧚

πŸ¦‹ SEE ALSO πŸ¦‹

the encode girlies and the decode girlies, all icon behavior ngl 🌈


mwah πŸ’‹ that's the whole page! brought to you by the <bold>./fs/nfs_common</bold> girlies, dated October 2026, living their best lives in the Kernel API Manual. go release your pacl, hydrate, and stan NFSv3 ACLs responsibly πŸ“

πŸ“¦ where this page comes from