nfs_stream_decode_acl(9)
π 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β anxdr_streampositioned at an encoded ACL. like, she's already standing at the door, you just gotta let her in π«Άaclcntβ OUT: count of ACEs in decodedposix_acl. she tells you how many lil ACEs she found πpaclβ OUT: a dynamically-allocated buffer containing the decodedposix_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:paclcontains a decoded ACL, andxdris advanced. slay!! it worked, andxdrhas officially moved on to the next thing β¨
π¨ okay bestie, listen, this is the important part: On a successful return, caller must release*paclusingposix_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 π¦
- Kernel file
./fs/nfs_common/nfsacl.cβ the source file, go read her nfsacl_encode(9)nfs_stream_encode_acl(9)nfsacl_decode(9)
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
- 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