module_put(9)
π module_put(9) β the Kernel API Manual page you actually needed
okay so bestie, welcome to the Kernel API Manual, section 9 π this one's short and sweet, but it's lowkey important so pls don't skip it.
β¨ NAME β¨
module_put β release a reference count to a module π¦
πΈ SYNOPSIS πΈ
void module_put (struct module *module );
that's it. one function, one argument, zero drama. the way that it just... does one thing π
π ARGUMENTS π
moduleβ the module we should release a reference count for π«Ά (yes, exactly that module. the one you were holding onto. let her go.)
π DESCRIPTION π
okay so here's the tea, and it's literally just one sentence but it's fr fr the whole point of this page:
if you successfully bump a reference count to a module with try_module_get, then when you are finished you must call module_put to release that reference count. periodt. π₯
no cap β those two are a matched set. you took a ref, you give it back. that's the vibe check. β¨ don't leave it hanging or the refcount stays inflated and that's giving π
π¦ SEE ALSO π¦
Kernel file ./include/linux/module.h π β go read it, it's iconic iykyk
module_init(9)module_exit(9)struct klp_modinfo(9)try_module_get(9)
and that's the whole page bestie, short king energy π tysm for reading β this one came to you from ./include/linux, dated October 2026, and ofc the page itself is module_put(9). mwah ππ
π¦ 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