_lwp_info(2) _lwp_info(2)
NAME
_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.
Copyright 1994 Novell, Inc. Page 1