open_enter

Attribute Macro open_enter 

Source
#[open_enter]
Expand description

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

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

ยงExample

use panda::prelude::*;

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