for_each_module_tracepoint(9)
π NAME π
okay so bestie, this is the for_each_module_tracepoint(9) page from the Kernel API Manual π«Ά and the actual name line is:
for_each_module_tracepoint β iteration on all tracepoints in all modules β¨
Itβs giving βwalk every tracepoint in every moduleβ energy, and honestly? iconic. No cap. π
β¨ SYNOPSIS β¨
Hereβs the whole signature, copied exactly because we do not mess with code in this house π :
void for_each_module_tracepoint (void (*fct)(struct tracepoint *tp,
struct module *mod, void *priv) , void *priv );
It returns void, so thereβs no return value to catch β just call it and go, bestie. π¦
π ARGUMENTS π
fctβ the callback, and yes itβs a function pointer with this exact shape:void (*fct)(struct tracepoint *tp, struct module *mod, void *priv). Itβs the main character of this call tbh πprivβ private data, typedvoid *priv. Literally your little bag of secrets π
π SEE ALSO π
Bestie, go peek at these:
- 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)register_tracepoint_module_notifier(9)unregister_tracepoint_module_notifier(9)for_each_tracepoint_in_module(9)for_each_kernel_tracepoint(9)
mwah π source/version ./kernel, dated October 2026 β thatβs the footer tea, and this page is doneeee πβ¨
π¦ 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