get time-accounting information of a single LWP
int _lwp_info(struct lwpinfo *buffer);
pointer to the lwpinfo structure
_lwp_info fills the lwpinfo structure pointed to by
buffer with time-accounting information for a single lightweight process
The lwpinfo structure in <sys/lwp.h> includes
the following members:
lwp_utime is the CPU time used while executing instructions
in the user space of the calling LWP.
lwp_stime is the CPU time used by the system on behalf of
the calling LWP.
_lwp_info returns 0 on success, and
fills in the lwpinfo structure pointed to by buffer.
If the following condition is detected,
_lwp_info returns the corresponding value:
buffer points to an illegal address.
This call may be extended in the future
to return other information in the lwpinfo structure as needed.
Lightweight processes (LWPs) are internal interfaces and are subject
to change. Their use should be avoided.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004