for_each_module_tracepoint(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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, typed void *priv. Literally your little bag of secrets πŸ™ˆ

🌈 SEE ALSO 🌈

Bestie, go peek at these:


mwah πŸ’‹ source/version ./kernel, dated October 2026 β€” that’s the footer tea, and this page is doneeee πŸŽ€βœ¨

πŸ“¦ where this page comes from