unregister_fprobe(9)
π unregister_fprobe(9) π
okay so bestie, welcome to section 9 of the Kernel API Manual β that's the kernel API girlies' section, and today's main character is unregister_fprobe. no cap, this one's important, so let's get into it π«Ά
πΈ NAME πΈ
unregister_fprobe β unregister an fprobe, and likeβ¦ wait for an RCU GP while you're at it. the way that grace period is literally the whole personality of this function π
β¨ SYNOPSIS β¨
int unregister_fprobe (struct fprobe *fp );
π ARGUMENTS π
fpβ thefprobedata structure that's getting unregistered, bestie. that's the one. she's the target π―
π DESCRIPTION π
so what she does is β¨ unregister the fprobe β¨ β and like, also remove the ftrace hooks from the function entries, because obviously we're not leaving those behind π
and here's the iconic part: this function will block until the fprobe is no longer used. yes queen, she waits. she does not leave until it's safe. main character energy fr fr π
Return 0 if fp is unregistered successfully, -errno if not. that's it, that's the vibe check π
ngl bestie, if you get -errno back, something did not slay. check your return value, always π
π¦ SEE ALSO π¦
- Kernel file
./kernel/trace/fprobe.c register_fprobe(9)register_fprobe_ips(9)register_fprobe_syms(9)unregister_fprobe_async(9)
like yes, go read the whole friend group, they're all in ./kernel/trace/fprobe.c together π§
okay that's the page!! and if you were wondering where this masterpiece lives β it's the ./kernel/trace source, dated October 2026, from your fave Kernel API Manual π byeee, go unregister responsibly πβ
π¦ 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