tracing_map_clear(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– tracing_map_clear(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this one's a lil' function called tracing_map_clear and honestly? she's the "start over, fresh slate" icon of the tracing world ✨


🌸 NAME 🌸

tracing_map_clear β€” literally just clears a tracing_map, that's the whole gig πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

void tracing_map_clear (struct tracing_map *map );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • map β€” the tracing_map you want to clear out. yep. that's the one. go wipe her 🌈

✨ DESCRIPTION ✨

so what does it do? it resets the tracing map back to a cleared / initial state. like factory reset but make it kernel πŸŽ€

the tracing_map_elts all get cleared, and the array of struct tracing_map_entry gets reset to an initialized state. everything's back to how it started, no cap πŸ’―

⚠️ okay this part is important bestie, don't skip it: callers should make sure there are no writers actively inserting into the map before calling this. if someone's out here mid-insert while you're clearing, that's a bad vibe. check first, then clear. 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./kernel/trace/tracing_map.c, plus the whole squad of related functions β€” they all match, so like, it's giving a full friend group πŸ’œ


and that's the page, bestie! 🧚 mwah πŸ’‹

sign-off vibes: this iconic lil' entry comes from ./kernel/trace, dated October 2026, and it's filed under tracing_map_clear(9) β€” remember her name πŸŽ€βœ¨

πŸ“¦ where this page comes from