nlm4svc_proc_cancel_msg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nlm4svc_proc_cancel_msg β€” the kernel API manual, bestie edition ✨

Okay so we're diving into nlm4svc_proc_cancel_msg(9) today and honestly? It's giving "small function, big responsibilities." This is a Kernel API Manual entry, and the name literally tells you everything: CANCEL_MSG: Cancel an outstanding lock request πŸŽ€

Like, somebody out there has a lock they don't want anymore, and this function is the one who picks up the phone. Iconic behavior, no cap.


✨ SYNOPSIS ✨

__be32 nlm4svc_proc_cancel_msg (struct svc_rqst *rqstp );

That's it. That's the whole signature. One argument, returns a __be32. Minimalist queen πŸ¦‹


🌸 ARGUMENTS 🌸

  • rqstp β€” the RPC transaction context, aka the whole vibe of the request that just showed up πŸ’–

That's the only thing you hand it. One parameter, and it handles the rest.


🌈 RETURN 🌈

So like, what comes back? Two possibilities, and they're both rpc_success or rpc_system_err coded into that __be32 return value:

  • rpc_success β€” RPC executed successfully. Slay, it worked πŸ’…
  • rpc_system_err β€” RPC execution failed. Not slay. Something went wrong 😭
Heads up bestie: the manual doesn't say what triggers which one beyond that, so don't go reading vibes into it β€” it just tells you those are the two outcomes. 🫢

🧚 DESCRIPTION 🧚

Okay so the technical bit, and yes I'm gonna give it to you straight:

RPC synopsis: void NLMPROC4_CANCEL_MSG(nlm4_cancargs) = 8;

That's the procedure number right there: 8. Lock it in your memory πŸŽ€

And here's the important part β€” the actual answer doesn't come back from this call. Nope! The response to this request is delivered via the CANCEL_RES procedure. So this is like the "received your message, will reply later" of RPC procedures. Main character energy where the reply happens off-screen ✨


πŸ‘‘ SEE ALSO πŸ‘‘

The kernel file involved is ./fs/lockd/svc4proc.c, and here's the whole friend group β€” every single one of them, no gatekeeping:

Go read them all, iykyk πŸ”₯


And that's the page, bestie β€” brought to you from ./fs/lockd, dated October 2026, in the Kernel API Manual. Go forth and cancel those locks responsibly πŸ’œπŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from