nlm4svc_proc_cancel_msg(9)
π 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:
nlm4svc_proc_null(9)nlm4svc_proc_test(9)nlm4svc_proc_lock(9)nlm4svc_proc_cancel(9)nlm4svc_proc_unlock(9)nlm4svc_proc_granted(9)nlm4svc_proc_test_msg(9)nlm4svc_proc_lock_msg(9)nlm4svc_proc_unlock_msg(9)nlm4svc_proc_granted_msg(9)nlm4svc_proc_granted_res(9)nlm4svc_proc_sm_notify(9)nlm4svc_proc_unused(9)nlm4svc_proc_share(9)nlm4svc_proc_unshare(9)nlm4svc_proc_nm_lock(9)nlm4svc_proc_free_all(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms