socketpair_enter

Attribute Macro socketpair_enter 

Source
#[socketpair_enter]
Expand description

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

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

ยงExample

use panda::prelude::*;

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