rethook_free(9)
π rethook_free(9) π
β¨ NAME β¨
okay so bestie, this page is from the Kernel API Manual, and it's all about rethook_free β which frees struct rethook, literally what it says on the tin. π
π SYNOPSIS π
void rethook_free (struct rethook *rh );
π¦ ARGUMENTS π¦
rhβ thestruct rethookto be freed. β¨
π₯ DESCRIPTION π₯
okay so here's the tea: this function frees the rethook. Before you call it, you β the user β must make sure rh::data is cleaned if needed. (Or, the handler can access it after calling this function.) no cap, that parenthetical is important. π«Ά
This function will set the rh to be freed after all rethook_node are freed β and yes, not soon. So don't expect it to happen instantly. π
And the caller must not touch rh after calling this. Like, hands off, bestie. periodt. π
πΈ SEE ALSO πΈ
Kernel file ./kernel/trace/rethook.c β go read it, iykyk. Then these iconic references:
rethook_stop(9)rethook_alloc(9)rethook_recycle(9)rethook_try_get(9)rethook_hook(9)rethook_find_ret_addr(9)
mwah π β this page came from ./kernel/trace, dated October 2026. stay safe, don't touch freed rh, ily! ππ«Ά
π¦ 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