module_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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


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