nlmsvc_proc_share(9)
π nlmsvc_proc_share β the Kernel API Manual page, bestie edition β¨
okay so real talk, this is a page from the Kernel API Manual and the star of the show is nlmsvc_proc_share(9) β the NLM server proc that handles the SHARE procedure. she's lowkey the moment, ngl π
β¨ NAME β¨
nlmsvc_proc_share β SHARE: open a file using DOS file-sharing modes π¦
like, yes, DOS modes, in the kernel, in the year of our lord. it's giving legacy but make it iconic π
πΈ SYNOPSIS πΈ
__be32 nlmsvc_proc_share (struct svc_rqst *rqstp );
that's the whole signature, she's compact and she knows it β¨
π ARGUMENTS π
rqstpβ the RPC transaction context. basically the little backpack this call carries all its RPC info around in π
π«Ά RETURN π«Ά
rpc_successβ the RPC executed successfully. slay, it worked πrpc_drop_replyβ do not send an RPC reply. like, just don't reply. ghosting, but intentional π
π₯ DESCRIPTION π₯
okay so here's the RPC synopsis, hold my iced coffee:
nlm_shareres NLM_SHARE(nlm_shareargs) = 20;
that 20 is the procedure number, don't @ me, it's just what it is π
now the permissible procedure status codes β the vibe check results, if you will:
LCK_GRANTEDβ the requested share lock was granted. we love a win πLCK_DENIEDβ the requested lock conflicted with existing lock reservations for the file. awkward. someone else got there first π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's healing, give her a minute π§
and the Linux NLM server implementation also returns this extra one, very spicy, very Linux of her:
LCK_DENIED_NOLOCKSβ a needed resource could not be allocated. out of resources, no cap π«
π SEE ALSO π
the whole fam, all linked up, all (9):
- Kernel file
./fs/lockd/svcproc.c nlmsvc_proc_null(9)nlmsvc_proc_test(9)nlmsvc_proc_lock(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_unshare(9)nlmsvc_proc_nm_lock(9)nlmsvc_proc_free_all(9)
and that's the whole page bestie, no notes π ok so the cute lil sign-off: this one comes from ./fs/lockd, dated October 2026, and it's filed as nlmsvc_proc_share(9) β periodt. π
π¦ 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