rethook_stop(9)
π NAME π
Okay so welcome to the rethook_stop(9) page, a certified Kernel API Manual banger π β and the whole vibe here is: rethook_stop β stop using a rethook. That's it, that's the tweet. Short, sweet, iconic π
β¨ SYNOPSIS β¨
void rethook_stop (struct rethook *rh );
Yes bestie, that's the entire signature, no cap. It returns void, don't @ me π
π«Ά ARGUMENTS π«Ά
rhβ thestruct rethookyou want to stop. That's the one. Hand it over π«΄
πΈ DESCRIPTION πΈ
So here's the tea β β you call rethook_stop to stop using a rethook, and the whole reason you do that is to prepare for freeing it π§β¨ Like, you're packing up the rethook's little room before it gets demolished, that's the energy.
Now this is the part where you need to pay attention, because it's giving "read the instructions or perish" π If you want to wait for all running rethook handler before you call rethook_free, then you genuinely need to call this first, and wait RCU, and then call rethook_free. In that order. Periodt π₯
Not me stressing that skipping the RCU wait is a whole situation β the sequence is literally:rethook_stop, wait RCU,rethook_free. Don't shuffle it π
π¦ SEE ALSO π¦
Kernel file ./kernel/trace/rethook.c plus the whole friend group π:
rethook_free(9)rethook_alloc(9)rethook_recycle(9)rethook_try_get(9)rethook_hook(9)rethook_find_ret_addr(9)
And that's the page, bestie π β brought to you by ./kernel/trace, dated October 2026, page rethook_stop(9). Slay, go stop some rethooks 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