register_tr...ule_notifier(9)
π register_tr...ule_notifier(9) β like, the Kernel API Manual page, bestie π
okay so picture this: it's a (9) manpage, it lives in the Kernel API Manual, and the title got truncated by the terminal gremlins into register_tr...ule_notifier(9). yes the ellipsis is canon, we respect it π«Ά the full name is right there in NAME, keep reading.
β¨ NAME β¨
register_tracepoint_module_notifier β registers a tracepoint coming/going notifier π« like it literally just signs your notifier block up to get pinged whenever a module shows up or dips out.
πΈ SYNOPSIS πΈ
int register_tracepoint_module_notifier (struct notifier_block *nb );
that's the whole vibe. one arg, returns an int. slay.
π¦ ARGUMENTS π¦
nbβ the notifier block. that's it, that's the argument. your notifier block. the block of notifier. π
π DESCRIPTION π
so the notifiers you register with this function get called on module coming/going β like, module arrives, module leaves, notifications go brrr π₯ β and the whole time that happens, it's all happening with the tracepoint_module_list_mutex held. lock held, bestie. do not forget the lock is held.
and the notifier block callback? it should expect a "struct tp_module" data pointer. that's the data it gets handed. no surprises, no cap, just a struct tp_module pointer coming your way π
okay tiny heads-up: since the mutex is held while your callback runs, please don't do anything cursed in there π the page doesn't tell me more than that, so I'm not gonna invent drama β but like, the lock is held. noted. memorised. manifesting good behaviour.
π₯ SEE ALSO π₯
- Kernel file
./kernel/tracepoint.c tracepoint_probe_register_prio_may_exist(9)tracepoint_probe_register_prio(9)tracepoint_probe_register(9)tracepoint_probe_unregister(9)unregister_tracepoint_module_notifier(9)for_each_tracepoint_in_module(9)for_each_module_tracepoint(9)for_each_kernel_tracepoint(9)
and that's the page!! π sign-off time: this little icon comes to you from the ./kernel directory, dated October 2026, and it answers to the name register_tr...ule_notifier(9) β yes, same truncated name, she's consistent π π¦ mwah, go read your notifier blocks, ily π
π¦ 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