Re-exports§
pub use hooks::Hook;pub use hooks::HookData;pub use hooks::HookWriter;pub use hooks::CallResult;pub use hooks::DispatchResult;pub use hooks::HookAction;pub use hooks::SavedRegs;pub use hooks::SavedRegsDispatch;pub use hooks::call_with_saved_regs;
Modules§
- __
macro_ support - arena
- Arenas hold the code generated for hooks: trampolines and relocated instructions. Placing code in an arena must never change the protection of code that may already be running.
- asm
- error
- hooks
- mem
- patch
- Patch writers overwrite live code in the hooked function. They must never leave the target’s pages non-executable, as other threads may be running code on them.
Functions§
- original_
function_ ptr - The original function of the hook currently running, which its trampoline
passes in r10, with a checksum of it in r11. Returns
Nonewhen not called from a hook.