nlmsvc_proc_share(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nlmsvc_proc_share β€” the Kernel API Manual page, bestie edition ✨

okay so real talk, this is a page from the Kernel API Manual and the star of the show is nlmsvc_proc_share(9) β€” the NLM server proc that handles the SHARE procedure. she's lowkey the moment, ngl πŸŽ€


✨ NAME ✨

nlmsvc_proc_share β€” SHARE: open a file using DOS file-sharing modes πŸ¦‹

like, yes, DOS modes, in the kernel, in the year of our lord. it's giving legacy but make it iconic πŸ’…


🌸 SYNOPSIS 🌸

__be32 nlmsvc_proc_share (struct svc_rqst *rqstp );

that's the whole signature, she's compact and she knows it ✨


πŸ’– ARGUMENTS πŸ’–

  • rqstp β€” the RPC transaction context. basically the little backpack this call carries all its RPC info around in πŸŽ’

🫢 RETURN 🫢

  • rpc_success β€” the RPC executed successfully. slay, it worked πŸ‘‘
  • rpc_drop_reply β€” do not send an RPC reply. like, just don't reply. ghosting, but intentional πŸ’€

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the RPC synopsis, hold my iced coffee:

nlm_shareres NLM_SHARE(nlm_shareargs) = 20;

that 20 is the procedure number, don't @ me, it's just what it is πŸ“

now the permissible procedure status codes β€” the vibe check results, if you will:

  • LCK_GRANTED β€” the requested share lock was granted. we love a win πŸ’–
  • LCK_DENIED β€” the requested lock conflicted with existing lock reservations for the file. awkward. someone else got there first 😭
  • LCK_DENIED_GRACE_PERIOD β€” the server has recently restarted and is re-establishing existing locks, and is not yet ready to accept normal service requests. she's healing, give her a minute 🧚

and the Linux NLM server implementation also returns this extra one, very spicy, very Linux of her:

  • LCK_DENIED_NOLOCKS β€” a needed resource could not be allocated. out of resources, no cap 🫠

🌈 SEE ALSO 🌈

the whole fam, all linked up, all (9):


and that's the whole page bestie, no notes πŸ’œ ok so the cute lil sign-off: this one comes from ./fs/lockd, dated October 2026, and it's filed as nlmsvc_proc_share(9) β€” periodt. 🌟

πŸ“¦ where this page comes from