nlmsvc_proc_test(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

Okay so real quick before we dive in: this page lives in the Kernel API Manual, and the star of the show is nlmsvc_proc_test. Pull up a chair, grab a strawberry πŸ“, and let's get into it.


✨ NAME ✨

nlmsvc_proc_test β€” TEST: Check for conflicting lock πŸ”₯

Like, that's literally its whole job. It checks whether a lock would conflict with stuff that's already going on. No drama, just vibes and lock-checking.


🌸 SYNOPSIS 🌸

__be32 nlmsvc_proc_test (struct svc_rqst *rqstp );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • rqstp β€” the RPC transaction context πŸ’–. Think of it as the little backstage pass that tells the function everything it needs to know about the request it's handling.

⭐ RETURN ⭐

  • rpc_success β€” RPC executed successfully ✨. It ate, it slayed, no notes.
  • rpc_drop_reply β€” Do not send an RPC reply πŸ™ˆ. Yeah, sometimes the move is to just... not reply. Iconic of it, honestly.

πŸ‘‘ DESCRIPTION πŸ‘‘

RPC synopsis, and I'm gonna give it to you verbatim because precision is the moment:

nlm_testres NLM_TEST(nlm_testargs) = 1;

Permissible procedure status codes, aka the four moods this thing can be in 🌈:

  • LCK_GRANTED β€” The server would be able to grant the requested lock πŸ’–. Yay! Slay! The lock is available and everything's good.
  • LCK_DENIED β€” The requested lock conflicted with existing lock reservations for the file πŸ’€. Not the outcome anyone wanted, but at least it's honest about it.
  • LCK_DENIED_NOLOCKS β€” The server could not allocate the resources needed to process the request 😭. It's not you, it's the resource allocation. Genuinely tragic.
  • 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 🧚. Okay so it just woke up and needs a minute β€” give it space, it's healing.

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./fs/lockd/svcproc.c, plus the whole friend group 🫢:


Ngl bestie, if a lock test comes back LCK_DENIED_GRACE_PERIOD you do not get to be mad at the server. It literally just restarted. Read the room πŸ’…

And that's the page, mwah πŸ’‹ β€” brought to you by the kernel file ./fs/lockd, dated October 2026, and filed under nlmsvc_proc_test(9) forever and always. Periodt. 🌟

πŸ“¦ where this page comes from