| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 2: System Calls Oracle Solaris 11 Information Library |
- return the time-accounting information of a single LWP
#include <sys/time.h>#include <sys/lwp.h>int_lwp_info(struct lwpinfo *buffer);
The_lwp_info() function fills thelwpinfo structure pointed to bybuffer with time-accounting information pertaining to the calling LWP. This call maybe extended in the future to return other information to thelwpinfostructure as needed. Thelwpinfo structure in <sys/lwp.h> includesthe following members:
timestruc_t lwp_utime;timestruc_t lwp_stime;
Thelwp_utime member is the CPU time used while executing instructions inthe user space of the calling LWP.
Thelwp_stime member is the CPU time used by the system onbehalf of the calling LWP.
Upon successful completion,_lwp_info() returns0 and fills in thelwpinfo structure pointed to bybuffer.
If the following condition is detected,_lwp_info() returns the corresponding value:
Thebuffer argument points to an illegal address.
Additionally, the_lwp_info() function will fail for 32-bit interfaces if:
The size of thetv_sec member of thetimestruc_t type pointed to bylwp_utime andlwp_stime is too small to contain the correct number of seconds.
Seeattributes(5) for descriptions of the following attributes:
|
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |