rethook_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay bestie, welcome to the Kernel API Manual page for rethook_alloc(9) β€” this one allocates a struct rethook. That's the whole name vibe. ✨

  • rethook_alloc β€” allocates a struct rethook.

πŸŽ€ SYNOPSIS πŸŽ€

Here's the exact signature, no cap:

struct rethook * rethook_alloc (void *data , rethook_handler_t handler ,
int size , int num );

🌸 ARGUMENTS 🌸

  • data β€” the data you pass along to the handler when the return is hooked. 🫢
  • handler β€” the return-hook callback function, and it must NOT be NULL. This is not a drill, bestie.
  • size β€” node size: the rethook node and additional data.
  • num β€” the number of rethook nodes to be preallocated.

πŸ¦‹ DESCRIPTION πŸ¦‹

This function allocates and initializes a new rethook using data and handler. It returns a pointer to the new rethook, or error codes for failures. Literally that's the deal. πŸ’…

Heads up: handler == NULL means this rethook is going to be freed. That's the note. Don't skip it. πŸ’€

🌈 SEE ALSO 🌈


Signed, sealed, slayed: source/version ./kernel/trace, dated October 2026 β€” all about rethook_alloc(9). πŸ’…πŸŽ€

πŸ“¦ where this page comes from