nsm_monitor(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 the nlm_host of 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 errno value β€” 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 πŸ¦‹

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