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

Lctlfdobtain the thread control file descriptor

Process Control Library (libproc, -lproc)

#include <libproc.h>

int
Lctlfd(struct ps_lwphandle *L);

The () function returns a file descriptor to the underlying /proc file system 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 call close(2) on the returned file descriptor.

See in libproc(3LIB).

libproc(3LIB), Lfree(3PROC), Lgrab(3PROC), proc(5)

November 27, 2023 OmniOS