_lwp_info man page on OpenIndiana

Man page or keyword search:  
man Server   20441 pages
apropos Keyword Search (all sections)
Output format
OpenIndiana logo
[printable version]

_lwp_info(2)			 System Calls			  _lwp_info(2)

NAME
       _lwp_info - return the time-accounting information of a single LWP

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

       int _lwp_info(struct lwpinfo *buffer);

DESCRIPTION
       The  _lwp_info()	 function  fills  the  lwpinfo structure pointed to by
       buffer with time-accounting information pertaining to the calling  LWP.
       This  call may be extended in the future to return other information to
       the   lwpinfo  structure	 as  needed.   The    lwpinfo	structure   in
       <sys/lwp.h> includes the following members:

	 timestruc_t   lwp_utime;
	 timestruc_t   lwp_stime;

       The  lwp_utime member is the CPU time used while executing instructions
       in the user space of the calling LWP.

       The lwp_stime member is the CPU time used by the system	on  behalf  of
       the calling LWP.

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

ERRORS
       If the following condition is detected,	_lwp_info() returns the corre‐
       sponding value:

       EFAULT	 The buffer argument points to an illegal address.

       Additionally,  the _lwp_info() function will fail for 32-bit interfaces
       if:

       EOVERFLOW    The size of the tv_sec  member  of	the  timestruc_t  type
		    pointed to by lwp_utime and lwp_stime is too small to con‐
		    tain the correct number of seconds.

ATTRIBUTES
       See attributes(5) for descriptions of the following attributes:

       ┌─────────────────────────────┬─────────────────────────────┐
       │      ATTRIBUTE TYPE	     │	    ATTRIBUTE VALUE	   │
       ├─────────────────────────────┼─────────────────────────────┤
       │MT-Level		     │Async-Signal-Safe		   │
       └─────────────────────────────┴─────────────────────────────┘

SEE ALSO
       times(2), attributes(5)

SunOS 5.11			  8 Aug 2001			  _lwp_info(2)
[top]

List of man pages available for OpenIndiana

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net