man.bsd.lv manual page server

Manual Page Search Parameters

_LWP_SELF(2) System Calls Manual _LWP_SELF(2)

_lwp_selfget light-weight process identification

library “libc”

#include <lwp.h>

lwpid_t
_lwp_self(void);

() returns the LWP ID of the calling LWP.

The _lwp_self() function is always successful, and no return value is reserved to indicate an error.

_lwp_create(2)

The _lwp_self() system call first appeared in NetBSD 2.0.

January 13, 2003 NetBSD-9.2