svcxdr_encode_fattr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… svcxdr_encode_fattr β€” bestie's guide to packing NFSv2 file attributes ✨

okay so real talk, this is a page from the Kernel API Manual (yes, the kernel girlies have their own manual, we stay educated πŸ’–) and it's literally about encoding NFSv2 file attributes into an XDR stream. Short page, but we're gonna make it iconic anyway πŸŽ€


🌸 NAME 🌸

svcxdr_encode_fattr β€” Encode NFSv2 file attributes ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

bool svcxdr_encode_fattr (struct svc_rqst *rqstp , struct xdr_stream
*xdr , const struct svc_fh *fhp , const struct kstat *stat );

not me pasting that signature exactly as-is because we do not mess with the source, periodt πŸ’…

🌈 ARGUMENTS 🌈

  • rqstp β€” the Context of a completed RPC transaction 🫢 like, this is the whole vibe of the request that already finished, bestie
  • xdr β€” the XDR stream 🌊 the actual stream we're writing into, main character energy
  • fhp β€” File handle to encode πŸ”₯ the file handle we're about to shove in there
  • stat β€” Attributes to encode ⭐ the attribute goodies themselves

✨ DESCRIPTION ✨

So what does it actually do? It gives you back a bool, and here's the vibe check on return values πŸ‘‘

  • false β€” Send buffer space was exhausted 😭 the buffer said "no ma'am" β€” you ran out of room
  • true β€” Success πŸ’– slay, it worked

that's it, that's the whole description, she's lowkey but she serves 🌸

ngl bestie, if you get false back that's not a "cry about it" moment, it's a "the send buffer ran out of space" moment β€” important distinction πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

go read the whole friend group, they're all in the same orbit πŸͺ


and that's the page, bestie 🫢 brought to you from ./fs/nfsd πŸ’œ dated October 2026 🌸 β€” version of the Kernel API Manual, obviously, we would never leave the source and date out, iykyk πŸ’…βœ¨

πŸ“¦ where this page comes from