nsm_reboot_lookup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nsm_reboot_lookup(9) β€” the nsm_reboot_lookup page, bestie edition πŸŽ€

okay so this is from the Kernel API Manual, and it's literally about matching NLMPROC_SM_NOTIFY arguments to an nsm_handle. stay with me, it's cute πŸ¦‹


✨ NAME ✨

nsm_reboot_lookup β€” match NLMPROC_SM_NOTIFY arguments to an nsm_handle 🫢


🌸 SYNOPSIS 🌸

struct nsm_handle * nsm_reboot_lookup (const struct net *net , const
struct lockd_reboot *info );

πŸŽ€ ARGUMENTS πŸŽ€

  • net β€” the network namespace, bestie 🌐
  • info β€” pointer to the NLMPROC_SM_NOTIFY arguments πŸ’Œ

πŸ’– DESCRIPTION πŸ’–

so the way this works: it returns a matching nsm_handle if one is found in the nsm cache. the returned nsm_handle's reference count is bumped β€” yes, bumped, iconic behavior πŸ‘‘

otherwise it returns NULL if some error occurred. that's it, that's the vibe 😭

ngl, NULL here is the "something went wrong" girlie, not the "no match" girlie. the man page says "if some error occurred" and we're not gonna lie to you πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole page, periodt ✨ source lives at ./fs/lockd, dated October 2026, and it's the nsm_reboot_lookup(9) page β€” mwah, love that for us πŸ’œπŸ§šβ€β™€οΈπŸŒˆ

πŸ“¦ where this page comes from