DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

_lwp_info(2)


_lwp_info -- get time-accounting information of a single LWP

Synopsis

   #include <sys/time.h>
   #include <sys/lwp.h>
   

int _lwp_info(struct lwpinfo *buffer);

Parameters


buffer
pointer to the lwpinfo structure

Description

_lwp_info fills the lwpinfo structure pointed to by buffer with time-accounting information for a single lightweight process (LWP). The lwpinfo structure in <sys/lwp.h> includes the following members: timestruc_t lwp_utime;
timestruc_t lwp_stime;

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.

Return values

_lwp_info returns 0 on success, and fills in the lwpinfo structure pointed to by buffer.

Errors

If the following condition is detected, _lwp_info returns the corresponding value:

EFAULT
buffer points to an illegal address.

References

times(2)

Notices

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