module_refcount(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so this is module_refcount(9), straight out of the Kernel API Manual, and it's giving one very specific job: return the refcount, or -1 if unloading. that's it, that's the whole vibe ✨


πŸŽ€ SYNOPSIS πŸŽ€

int module_refcount (struct module *mod );

🌸 ARGUMENTS 🌸

  • mod β€” the module we're checking. bestie, that's the one we're doing the vibe check on πŸ’…

πŸ¦‹ RETURN πŸ¦‹

if the module is in the process of unloading, you get -1 😭 otherwise you get the number of references in the kernel to the module. periodt, those are the two options πŸ’–


πŸ‘€ SEE ALSO πŸ‘€

the kernel file is ./kernel/module/main.c, and here's the whole see-also squad β€” no cap, every single one is below and nobody got left out 🫢


okay that's the whole manual page, periodt πŸ’… β€” source/version is ./kernel/module, date is October 2026, and yes the page is still module_refcount(9). bye bestie πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from