PISSYSCALL(3PROC) Process Control Library Functions PISSYSCALL(3PROC)

NAME


Pissyscall, Pissyscall_prev - determine if instructions are system call
instructions

LIBRARY


Process Control Library (libproc, -lproc)

SYNOPSIS


#include <libproc.h>

int
Pissyscall(struct ps_prochandle *P, uintptr_t addr);

int
Pissyscall_prev(struct ps_prochandle *P, uintptr_t addr,
uintptr_t *dst);

DESCRIPTION


The Pissyscall() function determines whether or not the instructions at
addr in the process handle P corresponds to one of the architecture's
system call instructions.

the Pissyscall_prev() function determines whether or not the
instruction before addr in the process handle P corresponds to one of
the architecture's system call instructions. If it does, and dst is a
non-NULL pointer, then the address of the system call instruction will
be copied into the location pointed to by dst.

RETURN VALUES


Upon successful completion, the Pissyscall() function returns non-zero
if addr corresponds to a system call instruction. Otherwise, 0 is
returned.

Upon successful completion, the Pissyscall_prev() function returns
non-zero if addr corresponds to a system call instruction and if dst is
non-NULL, dst is updated. Otherwise, 0 is returned.

INTERFACE STABILITY


Uncommitted

MT-LEVEL
See LOCKING in libproc(3LIB).

SEE ALSO


libproc(3LIB)

illumos May 11, 2016 illumos

tribblix@gmail.com :: GitHub :: Privacy