finit_module_enter

Attribute Macro finit_module_enter 

Source
#[finit_module_enter]
Expand description

(Callback) A callback that runs before the finit_module syscall runs.

Callback arguments: (&mut CPUState,SyscallPc,i32,u64,i32,)

ยงExample

use panda::prelude::*;

#[panda::on_sys::finit_module_enter]
fn callback(_: &mut CPUState, _: SyscallPc, _: i32, _: u64, _: i32, ) {
    // do stuff
}