nlmsvc_proc_unshare(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nlmsvc_proc_unshare β€” the Kernel API Manual glow-up πŸ¦‹

okay so this is nlmsvc_proc_unshare(9), bestie β€” a kernel API manual page, and honestly? she's serving release the share reservation realness. Let's get into it πŸ’–


✨ NAME ✨

nlmsvc_proc_unshare β€” UNSHARE: Release a share reservation πŸŽ€


🌸 SYNOPSIS 🌸

__be32 nlmsvc_proc_unshare (struct svc_rqst *rqstp );

that's it. that's the whole vibe. one function, one argument, __be32 out the other side ✨


🫢 ARGUMENTS 🫢

  • rqstp β€” the RPC transaction context πŸ’œ like, the whole little world this call is living in. everything you need to know about the request in flight? it's in there.

πŸ”₯ RETURN πŸ”₯

here's the tea on what comes back πŸ‘‘

  • rpc_success β€” RPC executed successfully. slay. it worked. πŸŽ‰
  • rpc_drop_reply β€” Do not send an RPC reply. no cap, literally nothing goes back out. πŸ™ˆ

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so the RPC synopsis, character for character, no notes:

nlm_shareres NLM_UNSHARE(nlm_shareargs) = 21;

and here are the permissible procedure status codes you might see πŸ’…

  • LCK_GRANTED β€” The share reservation was released. iconic behaviour, honestly. mission accomplished 🌈
  • 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. like babe she just woke up, give her a sec to put her lashes on 😭 she is not taking requests yet.

not me also telling you that the Linux NLM server implementation returns extra stuff beyond the standard set β€” it's giving overachiever 🧚

  • LCK_DENIED_NOLOCKS β€” A needed resource could not be allocated. rip. the room was full, the resource was not available, we move πŸ’€
fr fr though β€” those status codes are the entire story of what this call can tell you. don't sleep on LCK_DENIED_GRACE_PERIOD, she's the one that confuses people. it means restarted + still rebuilding locks, not nope forever.

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group 🫢 β€” kernel file ./fs/lockd/svcproc.c and, in no particular order, every sibling that shows up to the party:

iykyk πŸ’«


aaaand that's the page!! πŸŽ€ huge shoutout to ./fs/lockd for being the source home, October 2026 for the date stamp, and nlmsvc_proc_unshare(9) for the manual name β€” you ate and left zero crumbs, bestie πŸ’–βœ¨

πŸ“¦ where this page comes from