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.
See LOCKING in libproc(3LIB).
November 27, 2023 | OmniOS |