Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Standard C Library Functionsgetcpuid(3C)


NAME

 getcpuid, gethomelgroup - obtain information on scheduling decisions

SYNOPSIS

 
#include <sys/processor.h>
processorid_t getcpuid(void);
 lgrpid_t gethomelgroup(void);

DESCRIPTION

 

The getcpuid() function returns the processor ID on which the calling thread is currently executing.

The gethomelgroup() function returns the home latency group ID of the calling thread.

RETURN VALUES

 

See DESCRIPTION.

ERRORS

 

No errors are defined.

USAGE

 

Both the current CPU and the home latency group are subject to change at any time, so the value returned by these functions might already be incorrect upon completion of the call.

ATTRIBUTES

 

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

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilityStable
MT-LevelMT-Safe

SEE ALSO

 

psradm(1M), psrinfo(1M), psrset(1M), p_online(2), processor_bind(2), processor_info(2), pset_assign(2), pset_bind(2), pset_info(2), meminfo(2), sysconf(3C), attributes(5)


SunOS 5.9Go To TopLast Changed 10 Dec 2001

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.