sync_enter

Attribute Macro sync_enter 

Source
#[sync_enter]
Expand description

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

Callback arguments: (&mut CPUState,SyscallPc,)

ยงExample

use panda::prelude::*;

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