1_lwp_info(2)                     System Calls                     _lwp_info(2)
2
3
4

NAME

6       _lwp_info - return the time-accounting information of a single LWP
7

SYNOPSIS

9       #include <sys/time.h>
10       #include <sys/lwp.h>
11
12       int _lwp_info(struct lwpinfo *buffer);
13
14

DESCRIPTION

16       The  _lwp_info()  function  fills  the  lwpinfo structure pointed to by
17       buffer with time-accounting information pertaining to the calling  LWP.
18       This  call may be extended in the future to return other information to
19       the   lwpinfo  structure  as  needed.   The    lwpinfo   structure   in
20       <sys/lwp.h> includes the following members:
21
22         timestruc_t   lwp_utime;
23         timestruc_t   lwp_stime;
24
25
26
27       The  lwp_utime member is the CPU time used while executing instructions
28       in the user space of the calling LWP.
29
30
31       The lwp_stime member is the CPU time used by the system  on  behalf  of
32       the calling LWP.
33

RETURN VALUES

35       Upon  successful  completion,   _lwp_info() returns  0 and fills in the
36       lwpinfo structure pointed to by  buffer.
37

ERRORS

39       If the following condition is detected,  _lwp_info() returns the corre‐
40       sponding value:
41
42       EFAULT    The buffer argument points to an illegal address.
43
44
45
46       Additionally,  the _lwp_info() function will fail for 32-bit interfaces
47       if:
48
49       EOVERFLOW    The size of the tv_sec  member  of  the  timestruc_t  type
50                    pointed to by lwp_utime and lwp_stime is too small to con‐
51                    tain the correct number of seconds.
52
53

ATTRIBUTES

55       See attributes(5) for descriptions of the following attributes:
56
57
58
59
60       ┌─────────────────────────────┬─────────────────────────────┐
61       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
62       ├─────────────────────────────┼─────────────────────────────┤
63       │MT-Level                     │Async-Signal-Safe            │
64       └─────────────────────────────┴─────────────────────────────┘
65

SEE ALSO

67       times(2), attributes(5)
68
69
70
71SunOS 5.11                        8 Aug 2001                      _lwp_info(2)
Impressum