LCTLFD(3PROC) Process Control Library Functions LCTLFD(3PROC)
Lctlfd - obtain the thread control file descriptor
Process Control Library (libproc, -lproc)
#include <libproc.h>
int
Lctlfd(struct ps_lwphandle *L);
The Lctlfd() function returns a file descriptor to the underlying /proc
file system ctl file for the thread identified by the handle L. This
may be used for injecting control operations manually; however, many
interfaces for using it are provided by libproc(3LIB) itself.
The file descriptor is invalidated when the thread handle is released
through Lfree(3PROC). The caller must not call close(2) on the
returned file descriptor.
Uncommitted
MT-LEVEL
See LOCKING in libproc(3LIB).
libproc(3LIB), Lfree(3PROC), Lgrab(3PROC), proc(5)
illumos November 27, 2023 illumos
NAME
Lctlfd - obtain the thread control file descriptor
LIBRARY
Process Control Library (libproc, -lproc)
SYNOPSIS
#include <libproc.h>
int
Lctlfd(struct ps_lwphandle *L);
DESCRIPTION
The Lctlfd() function returns a file descriptor to the underlying /proc
file system ctl file for the thread identified by the handle L. This
may be used for injecting control operations manually; however, many
interfaces for using it are provided by libproc(3LIB) itself.
The file descriptor is invalidated when the thread handle is released
through Lfree(3PROC). The caller must not call close(2) on the
returned file descriptor.
INTERFACE STABILITY
Uncommitted
MT-LEVEL
See LOCKING in libproc(3LIB).
SEE ALSO
libproc(3LIB), Lfree(3PROC), Lgrab(3PROC), proc(5)
illumos November 27, 2023 illumos