free_ftrace_func_mapper(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 free_ftrace_func_mapper β€” the manual page (Kernel API Manual, section 9) 🌸

okay bestie, pull up a chair, because today we're talking about the icon, the legend, the function that cleans up after everybody else: free_ftrace_func_mapper(9). yes she's giving janitor energy and yes she ATE πŸ’…


✨ NAME ✨

free_ftrace_func_mapper β€” frees a mapping of ips and data πŸ§ΉπŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

void free_ftrace_func_mapper (struct ftrace_func_mapper *mapper ,
ftrace_mapper_func free_func );

no cap, that's the whole signature. two things go in, nothing comes out (it's void, she doesn't do returns 🫢).


πŸ¦‹ ARGUMENTS πŸ¦‹

  • mapper β€” the mapper that has the ip maps. yes, this one. the whole reason we're here, the main character πŸ‘‘
  • free_func β€” a function to be called on each data item. optional babe, see below ✨

πŸ’… DESCRIPTION πŸ’…

so like, this is used to free the function mapper. that's the vibe. that's the whole job.

the free_func is optional, and you use it if the data needs to be freed as well β€” like, if your data items are holding onto stuff and you want them to let go too. if your data doesn't need freeing, you can lowkey just pass nothing through and skip the whole thing. iykyk πŸ’€

πŸŽ€ friendly reminder from your girl: free_func being optional does NOT mean the mapper stops needing freeing. the mapper is getting freed either way, bestie. the optional bit is just about your data items 🫢

πŸ”₯ SEE ALSO πŸ”₯

literally the entire ftrace friend group, ok, they all show up to the function:

fr fr that's the whole roster, go read them all, they're iconic 🌈⭐


and that's the page!! this one came straight outta ./kernel/trace, dated October 2026, in the Kernel API Manual (section 9, as always). mwah, go free your mappers responsibly, bestie πŸ’œπŸ§šπŸŒΈ

πŸ“¦ where this page comes from