_lwp_info(2) System Calls _lwp_info(2)
_lwp_info - return the time-accounting information of a single LWP
int _lwp_info(struct lwpinfo *buffer);
The _lwp_info() function fills the lwpinfo structure pointed to by
buffer with time-accounting information pertaining to the calling LWP.
This call may be extended in the future to return other information to
the lwpinfo structure as needed. The lwpinfo structure in
<<sys/lwp.h>> includes the following members:
The lwp_utime member is the CPU time used while executing instructions
in the user space of the calling LWP.
The lwp_stime member is the CPU time used by the system on behalf of
the calling LWP.
Upon successful completion, _lwp_info() returns 0 and fills in the
lwpinfo structure pointed to by buffer.
If the following condition is detected, _lwp_info() returns the corre-
EFAULT The buffer argument points to an illegal address.
Additionally, the _lwp_info() function will fail for 32-bit interfaces
EOVERFLOW The size of the tv_sec member of the timestruc_t type
pointed to by lwp_utime and lwp_stime is too small to
contain the correct number of seconds.
See attributes(5) for descriptions of the following attributes:
tab() allbox; cw(2.750000i)| cw(2.750000i) lw(2.750000i)|
lw(2.750000i). ATTRIBUTE TYPEATTRIBUTE VALUE MT-LevelAsync-Signal-Safe
SunOS 5.10 8 Aug 2001 _lwp_info(2)