unregister_fprobe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the fprobe data 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 πŸ¦‹

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