nlmsvc_proc_lock(9)
π nlmsvc_proc_lock(9) β a Kernel API Manual moment πΈ
okay so bestie, welcome to the nlmsvc_proc_lock(9) page β yes that's her full government name, and yes she's from the Kernel API Manual, we stan π
β¨ NAME β¨
nlmsvc_proc_lock β LOCK: Establish a monitored lock π
π¦ SYNOPSIS π¦
__be32 nlmsvc_proc_lock (struct svc_rqst *rqstp );
π ARGUMENTS π
rqstpβ the RPC transaction context. that's it, that's the whole vibe, she just needs the context bestie π«Ά
β RETURN β
rpc_successβ RPC executed successfully. slay, it worked πrpc_drop_replyβ Do not send an RPC reply. literally just don't reply, ghost them π
π DESCRIPTION π
RPC synopsis, and I'm gonna give it to you exactly how it is:
nlm_res NLM_LOCK(nlm_lockargs) = 2;
now for the permissible procedure status codes, aka the whole mood board of outcomes β every single one of them, no skipping β¨
LCK_GRANTEDβ The requested lock was granted. iconic behavior, honestly π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 going through it rn πLCK_BLOCKEDβ The blocking request cannot be granted immediately. The server will send anNLM_GRANTEDcallback to the client when the lock can be granted. so likeβ¦ not right now, but she will text you back, promise π«Ά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. she just woke up, give her a minute to do her skincare routine π§
π SEE ALSO π
Kernel file ./fs/lockd/svcproc.c β and the whole friend group, fr fr:
nlmsvc_proc_null(9)nlmsvc_proc_test(9)nlmsvc_proc_cancel(9)nlmsvc_proc_unlock(9)nlmsvc_proc_granted(9)nlmsvc_proc_test_msg(9)nlmsvc_proc_lock_msg(9)nlmsvc_proc_cancel_msg(9)nlmsvc_proc_unlock_msg(9)nlmsvc_proc_granted_msg(9)nlmsvc_proc_granted_res(9)nlmsvc_proc_sm_notify(9)nlmsvc_proc_unused(9)nlmsvc_proc_share(9)nlmsvc_proc_unshare(9)nlmsvc_proc_nm_lock(9)nlmsvc_proc_free_all(9)
ok that's the whole page bestie, go forth and lock responsibly π¦π
kisses from ./fs/lockd, dated October 2026, brought to you by the nlmsvc_proc_lock(9) girlies β see u in the group chat ππ
π¦ 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