for_each_tr...nt_in_module(9)
πΈ NAME πΈ
okay so bestie, let me introduce you to for_each_tracepoint_in_module β she's literally the iteration queen who walks every single tracepoint inside a module, one by one, no skips, no cap π
β¨ SYNOPSIS β¨
void for_each_tracepoint_in_module (struct module *mod , void
(*fct)(struct tracepoint *tp, struct module *mod, void *priv) , void
*priv );
like, you hand her a module, a callback, and some private data, and she just goes off looping through the tracepoints π¦
π ARGUMENTS π
modβ the module, bestie. that's the one being iterated over. main character energy fr πfctβ the callback π«Ά this is the little function that gets called for each tracepoint; its shape isvoid (*fct)(struct tracepoint *tp, struct module *mod, void *priv), so it receives the tracepoint, the module, and your private data β¨privβ private data π literally just your stuff, passed straight through to the callback so it can do its thing. iykyk
π SEE ALSO π
- Kernel file
./kernel/tracepoint.cβ go read her, she's iconic π tracepoint_probe_register_prio_may_exist(9)tracepoint_probe_register_prio(9)tracepoint_probe_register(9)tracepoint_probe_unregister(9)register_tracepoint_module_notifier(9)unregister_tracepoint_module_notifier(9)for_each_module_tracepoint(9)for_each_kernel_tracepoint(9)
and that's the whole vibe check π§ this page came straight out of ./kernel, dated October 2026, and the header name for_each_tr...nt_in_module(9) is just her cute little abbreviated government name β periodt π
π₯ π
π¦ 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