nlmsvc_proc_unlock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so this is nlmsvc_proc_unlock(9) from the Kernel API Manual, and the function is nlmsvc_proc_unlock β€” UNLOCK: Remove a lock. It’s giving β€œlock says bye bestie” energy, and we’re here for it.


✨ SYNOPSIS ✨

__be32 nlmsvc_proc_unlock (struct svc_rqst *rqstp );

πŸŽ€ ARGUMENTS πŸŽ€

  • rqstp β€” RPC transaction context. That’s the whole RPC moment wrapped up, iykyk.

🫢 RETURN 🫢

  • rpc_success: RPC executed successfully. Slay, it worked.
  • rpc_drop_reply: Do not send an RPC reply. Literally no reply, periodt.

🌸 DESCRIPTION 🌸

RPC synopsis:

nlm_res NLM_UNLOCK(nlm_unlockargs) = 4;

The permissible procedure status codes are:

  • LCK_GRANTED: The requested lock was released. Iconic β€” the lock is gone πŸ‘‹.
  • 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. It’s giving β€œgive me a sec, I’m rebuilding my whole situation” energy.

The Linux NLM server implementation also returns:

  • LCK_DENIED_NOLOCKS: A needed resource could not be allocated. Not the resource allocation failing 😭.

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./fs/lockd/svcproc.c plus the whole lockd bestie lineup:


xoxo πŸ’– from ./fs/lockd, October 2026 β€” this has been nlmsvc_proc_unlock(9), signing off πŸŽ€

πŸ“¦ where this page comes from