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

NAME


Psync, Lsync - synchronize cached tracing flags and modifications

LIBRARY


Process Control Library (libproc, -lproc)

SYNOPSIS


#include <libproc.h>

void
Psync(struct ps_prochandle *P);

void
Lsync(struct ps_lwphandle *L);

DESCRIPTION


The Psync() function synchronizes modifications to the process handle P
back to the underlying active process. The Psync() function ensures that
any outstanding process holds, register modifications, signal injections,
and modifications to the various fault and system call tracing flags are
taken care of.

Normally this function is not required as other library routines take care
of synchronizing this state out to the process when it is required. If the
underlying /proc file system routines are used outside of the library,
calling this function may be required.

The Psync() function is only meaningful for active processes. It will do
nothing on process handles that refer to core files, zombie processes, and
ELF objects.

The Lsync() function is equivalent to the Psync() function, except rather
than operating on the entire process and its representative thread, it
instead operates on the thread handle L.

INTERFACE STABILITY


Uncommitted

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

SEE ALSO


libproc(3LIB), Pfault(3PROC), Pputareg(3PROC), Psetfault(3PROC),
Psetsignal(3PROC), Psetsysentry(3PROC), Psetsysexit(3PROC), Psignal(3PROC),
Psysentry(3PROC), Psysexit(3PROC), proc(5)

illumos May 11, 2016 illumos