nsm_monitor(9)
π nsm_monitor(9) β Kernel API Manual, section 9, bestie edition π
okay so like, imagine your kernel is a main character who might ~dramatically~ reboot at any moment. this little function is how it makes sure somebody remembers to text the group chat about it. it's giving responsible queen energy, ngl. π
β¨ SYNOPSIS β¨
int nsm_monitor (const struct nlm_host *host );
π«Ά ARGUMENTS π«Ά
hostβ pointer to thenlm_hostof the peer we want to notify. that's it. that's the whole vibe. π
πΈ DESCRIPTION πΈ
okay so here's the tea: if this peer isn't already being monitored, nsm_monitor sends an upcall to the local rpc.statd so it records the name/address of the peer to notify in case we reboot. literally just making sure the receipts are saved before anything chaotic happens. π§β¨
and the return value? she's simple:
- returns zero if the peer is monitored by the local
rpc.statdβ slay, we're covered π - otherwise you get a negative
errnovalue β not the vibe, but at least it's honest π
no cap, don't lose the errno β negative numbers are the whole point here, bestie.
π¦ SEE ALSO π¦
- Kernel file
./fs/lockd/mon.c nsm_unmonitor(9)nsm_get_handle(9)nsm_reboot_lookup(9)nsm_release(9)
go read the whole friend group, they all know each other iykyk π
that's the whole page, periodt. π this masterpiece lives in ./fs/lockd and it's dated October 2026 β yes, the future, because she's ahead of her time βπ bye bestie, go monitor some peers! π
π¦ 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