nlmsvc_proc_nm_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nlmsvc_proc_nm_lock(9) πŸ’…

okay bestie, welcome to the nlmsvc_proc_nm_lock(9) page from the Kernel API Manual ✨ this one is literally all about NM_LOCK β€” establishing a non-monitored lock. no cap, the facts are right here πŸŽ€


🌸 NAME 🌸

nlmsvc_proc_nm_lock β€” NM_LOCK: Establish a non-monitored lock πŸ¦‹


✨ SYNOPSIS ✨

__be32 nlmsvc_proc_nm_lock (struct svc_rqst *rqstp );

πŸ’œ ARGUMENTS πŸ’œ

  • rqstp β€” RPC transaction context. it's giving β€œthe context for this RPC transaction,” and yes, that is exactly what it is, bestie 🫢

πŸ”₯ RETURN πŸ”₯

  • rpc_success β€” RPC executed successfully. slay, it worked πŸ’–
  • rpc_drop_reply β€” Do not send an RPC reply. literally do not send one πŸ™ˆ

🌈 DESCRIPTION 🌈

RPC synopsis: nlm_res NLM_NM_LOCK(nlm_lockargs) = 22; β€” iconic little signature, no notes πŸ‘‘

Permissible procedure status codes:

  • LCK_GRANTED β€” The requested lock was granted. periodt πŸ’…
  • LCK_DENIED β€” The requested lock conflicted with existing lock reservations for the file. awkward 😭
  • LCK_DENIED_NOLOCKS β€” The server could not allocate the resources needed to process the request. the server is lowkey out of resources πŸ’€
  • LCK_BLOCKED β€” The blocking request cannot be granted immediately. The server will send an NLM_GRANTED callback to the client when the lock can be granted. not me waiting for the callback 🫠
  • 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. grace period era, pls respect it 🌸

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./fs/lockd/svcproc.c β€” go check out the whole lockd sibling squad, fr fr:


xoxo, your Unix bestie πŸ’– β€” this page comes from source/version ./fs/lockd and is dated October 2026 πŸŽ€

πŸ“¦ where this page comes from