nlm_svc_encode_nlm_shareres(9)
π 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 β¨:
nlm_svc_decode_nlm_testargs(9)nlm_svc_decode_nlm_lockargs(9)nlm_svc_decode_nlm_cancargs(9)nlm_svc_decode_nlm_unlockargs(9)nlm_svc_decode_nlm_testres(9)nlm_svc_decode_nlm_res(9)nlm_svc_decode_nlm_notifyargs(9)nlm_svc_decode_nlm_shareargs(9)nlm_svc_decode_nlm_notify(9)nlm_svc_encode_nlm_testres(9)nlm_svc_encode_nlm_res(9)
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
- 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