_lwp_getprivate(2) - NetBSD Manual Pages

_LWP_GETPRIVATE(2)        NetBSD System Calls Manual        _LWP_GETPRIVATE(2)


NAME
_lwp_getprivate, _lwp_setprivate -- get and set light-weight process pri- vate data
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <lwp.h> void * _lwp_getprivate(void); void _lwp_setprivate(void *ptr);
DESCRIPTION
_lwp_setprivate() stores the pointer to private data ptr in a location private to the LWP. _lwp_getprivate() returns the pointer to private data for the LWP. Some platforms provide alternative ways quicker than _lwp_getprivate() to use the pointer. alpha The pointer can be retrieved by call_pal PAL_rdunique. amd64 The base address of %fs register is set to the pointer so that the private data can be accessed using the selector. i386 The base address of %gs register is set to the pointer so that the private data can be accessed using the selector. sparc %g7 register is set to the pointer.
ERRORS
The _lwp_getprivate() and _lwp_setprivate() functions are always success- ful, and no return value is reserved to indicate an error.
SEE ALSO
_lwp_makecontext(3)
HISTORY
The _lwp_getprivate() and _lwp_setprivate() system calls first appeared in NetBSD 2.0. NetBSD 7.0.2 September 7, 2013 NetBSD 7.0.2

Powered by man-cgi (2024-08-26). Maintained for NetBSD by Kimmo Suominen. Based on man-cgi by Panagiotis Christias.