nlm4svc_proc_share(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nlm4svc_proc_share(9) β€” like, the Kernel API Manual, bestie πŸŽ€

okay so this is a page from the Kernel API Manual (yes that one, the (9) section, we're in kernel land now ✨) and honestly? it's a whole vibe. let's get into it 🫢


✨ NAME ✨

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

like yes, DOS. yes, in the kernel. we contain multitudes πŸ’œ


🌸 SYNOPSIS 🌸

__be32 nlm4svc_proc_share (struct svc_rqst *rqstp );

one function, one argument, zero drama (okay maybe a little drama, see RETURN below 😭)


πŸŽ€ ARGUMENTS πŸŽ€

  • rqstp β€” the RPC transaction context. that's it. that's the whole argument. she's lowkey carrying the entire request on her shoulders πŸ‘‘

⭐ RETURN ⭐

  • rpc_success β€” the RPC executed successfully. slay πŸ’…
  • rpc_drop_reply β€” do not send an RPC reply. like, read the room and say nothing πŸ«₯

πŸ”₯ DESCRIPTION πŸ”₯

RPC synopsis, verbatim, because we do not paraphrase code in this house:

nlm4_shareres NLMPROC4_SHARE(nlm4_shareargs) = 20;

so, the permissible procedure status codes β€” iykyk πŸ‘‘

  • NLM4_GRANTED β€” the requested share lock was granted. icon behavior, no notes πŸŽ‰
  • NLM4_DENIED β€” the requested lock conflicted with existing lock reservations for the file. it's giving "someone already claimed this seat" πŸ’€
  • NLM4_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 recovering, give her a minute 🧚

and the Linux NLM server implementation also returns these, because she simply has more to say:

  • NLM4_DENIED_NOLOCKS β€” a needed resource could not be allocated. out of resources, out of patience 😭
  • NLM4_STALE_FH β€” the request specified an invalid file handle. that handle is stale fr fr πŸ™ˆ
  • NLM4_FBIG β€” the request specified a length or offset that exceeds the range supported by the server. too big. literally too big πŸ“
  • NLM4_FAILED β€” the request failed for an unspecified reason. no explanation, just vibes πŸ’€
bestie note 🫢: NLM4_FAILED genuinely does not tell you why. that's not me being vague, that's the spec being vague. do not @ me.

🌈 SEE ALSO 🌈

the kernel file is ./fs/lockd/svc4proc.c, and here's the whole friend group 🫢:


and that's the page!! πŸ“–βœ¨ this one lives in ./fs/lockd, dated October 2026, and she's officially nlm4svc_proc_share(9) β€” go forth and share those files with your DOS file-sharing modes, bestie. periodt πŸ’…πŸ’–

πŸ“¦ where this page comes from