nlm4svc_proc_lock(9)
πΈ NAME πΈ
Okay bestie, welcome to nlm4svc_proc_lock(9) from the Kernel API Manual β this is the page for the function nlm4svc_proc_lock - LOCK: Establish a monitored lock π
β¨ SYNOPSIS β¨
__be32 nlm4svc_proc_lock (struct svc_rqst *rqstp );
π«Ά ARGUMENTS π«Ά
rqstpβ RPC transaction context
π RETURN π
rpc_success: RPC executed successfully.rpc_drop_reply: Do not send an RPC reply.
π₯ DESCRIPTION π₯
RPC synopsis, bestie: nlm4_res NLMPROC4_LOCK(nlm4_lockargs) = 2;
Permissible procedure status codes β the whole vibe check:
NLM4_GRANTED: The requested lock was granted.NLM4_DENIED: The requested lock conflicted with existing lock reservations for the file.NLM4_DENIED_NOLOCKS: The server could not allocate the resources needed to process the request.NLM4_BLOCKED: The blocking request cannot be granted immediately. The server will send anNLMPROC4_GRANTEDcallback to the client when the lock can be granted.NLM4_DENIED_GRACE_PERIOD: The server has recently restarted and is re-establishing existing locks, and is not yet ready to accept normal service requests.
The Linux NLM server implementation also returns these extra plot twists:
NLM4_DEADLCK: The request could not be granted and blocking would cause a deadlock.NLM4_STALE_FH: The request specified an invalid file handle.NLM4_FBIG: The request specified a length or offset that exceeds the range supported by the server.NLM4_FAILED: The request failed for an unspecified reason.
π¦ SEE ALSO π¦
Kernel file ./fs/lockd/svc4proc.c β go peep these besties too:
nlm4svc_proc_null(9)nlm4svc_proc_test(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_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)
Catch you later, bestie! π This iconic little page comes from source/version ./fs/lockd, dated October 2026, and itβs the nlm4svc_proc_lock(9) manual page. πβ¨
π¦ 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