module_refcount(9)
π 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 π«Ά
find_any_unique_sec(9)is_module_percpu_address(9)verify_module_namespace(9)elf_validity_ehdr(9)elf_validity_cache_sechdrs(9)elf_validity_cache_secstrings(9)elf_validity_cache_index_info(9)elf_validity_cache_index_mod(9)elf_validity_cache_index_sym(9)elf_validity_cache_index_str(9)elf_validity_cache_index_versions(9)elf_validity_cache_index(9)elf_validity_cache_strtab(9)is_module_address(9)__module_address(9)is_module_text_address(9)__module_text_address(9)
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
- 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