nlm4svc_proc_granted(9)
π nlm4svc_proc_granted π
okay so this is a page from the Kernel API Manual bestie, and it's about nlm4svc_proc_granted β yes that's a mouthful, we're gonna get through it together π«Ά
πΈ NAME πΈ
nlm4svc_proc_granted β GRANTED: Server grants a previously blocked lock πβ¨
like, the lock was on hold and now the server is finally sliding it over. it's giving "your table is ready" energy fr fr.
π SYNOPSIS π
__be32 nlm4svc_proc_granted (struct svc_rqst *rqstp );
that's the whole signature, no cap. it returns a __be32 and takes exactly one thing. iconic minimalism π
π¦ ARGUMENTS π¦
rqstpβ the RPC transaction context. it's literally the whole vibe of the call, everything the procedure needs to know about the request lives in here π
β RETURN β
rpc_successβ RPC executed successfully. that's it, that's the win, we love a clean success β¨
π DESCRIPTION π
so the RPC synopsis goes like this, and pls don't @ me, this is verbatim:
nlm4_res NLMPROC4_GRANTED(nlm4_testargs) = 5;
and here are the permissible procedure status codes β memorize them, they're important π§
NLM4_GRANTEDβ the granted lock was accepted. slay, the client said yes π βNLM4_DENIEDβ the procedure failed, possibly due to internal resource constraints. lowkey a bummer, could just be the box being stretched thin πNLM4_DENIED_GRACE_PERIODβ the client host recently restarted and its NLM is re-establishing existing locks, so it is not yet ready to accept callbacks. read that again bestie: it's not yet ready, it's still putting its face on ππ§΄
heads up:NLM4_DENIEDandNLM4_DENIED_GRACE_PERIODare both real outcomes here, so don't go assuming every call comes backNLM4_GRANTED. the grace period one especially β a client that just rebooted is genuinely not going to take your callback yet.
π₯ SEE ALSO π₯
Kernel file ./fs/lockd/svc4proc.c β like, that's where the actual code lives, go look, iykyk π
nlm4svc_proc_null(9)nlm4svc_proc_test(9)nlm4svc_proc_lock(9)nlm4svc_proc_cancel(9)nlm4svc_proc_unlock(9)nlm4svc_proc_test_msg(9)nlm4svc_proc_lock_msg(9)nlm4svc_proc_cancel_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)
the whole lockd friend group honestly ππ«Ά
and that's the page!! it lives in ./fs/lockd, dated October 2026 β so like, future vibes but make it kernel π¦π go forth and grant those locks bestie, you're gonna do amazing πβ¨π
π¦ 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