nlm_svc_encode_nlm_shareres(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nlm_svc_encode_nlm_shareres(9) β€” like, the whole manual page, bestie

Okay so real talk: this is nlm_svc_encode_nlm_shareres(9) from the Kernel API Manual, and it's literally the glow-up step for an nlm_shareres result. It takes your result and ✨encodes✨ it into an XDR stream so it can go out on the wire. Short page, iconic function, let's get into it 🫢


🌸 NAME 🌸

nlm_svc_encode_nlm_shareres β€” no cap, this one encodes an nlm_shareres result πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

bool nlm_svc_encode_nlm_shareres (struct svc_rqst *rqstp , struct
xdr_stream *xdr );

That's the whole signature, bestie β€” a bool going in, two args, done πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • rqstp β€” the RPC transaction context. Think of it as the ~vibe~ of the current call πŸŒ€
  • xdr β€” the target XDR data stream. This is the canvas, and we're painting the result onto it πŸ–ŒοΈ

πŸ’œ DESCRIPTION πŸ’œ

So what does it actually do? It returns a bool, and the return values are exactly this, fr fr:

  • true β€” the procedure results encoded successfully, slay βœ…
  • false β€” encode failed 😭

That's it. That's the function. Lowkey elegant, highkey essential πŸ’…

Heads up: those two values are the entire documented return contract here β€” don't go reading extra meaning into them 🫢

🌈 SEE ALSO 🌈

The kernel file lives at ./fs/lockd/nlm3xdr_gen.c, and it comes with a whole friend group ✨:

Go say hi to them, iykyk πŸ¦‹


Sign-off time, bestie πŸ’Œ β€” this page came from ./fs/lockd, dated October 2026, and it's part of the Kernel API Manual. Encode responsibly, and drink some water πŸ“πŸ§šπŸ’–

πŸ“¦ where this page comes from