MCPcopy Create free account
hub / github.com/Gstalker/Zygisk-Rust-ModuleTemplate / plt_hook_register

Method plt_hook_register

module/rust/src/api.rs:124–141  ·  view source on GitHub ↗

For ELFs loaded in memory matching `regex`, replace function `symbol` with `new_func`. The type `*mut ()` is used in place of Rust function pointer types. If `old_func` is not `None`, the original function pointer will be saved to `old_func`. ## Safety This function is unsafe, since a badly designed hook or misuse of raw pointers may lead to memory unsafety.

(
        &self,
        regex: &CStr,
        symbol: &CStr,
        new_func: *mut (),
        old_func: Option<&mut *mut ()>,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected