GETCPUID(3C) | Standard C Library Functions | GETCPUID(3C) |
getcpuid, gethomelgroup - obtain information on scheduling decisions
#include <sys/processor.h> processorid_t getcpuid(void);
ushort_t gethomelgroup(void);
The getcpuid() function returns the processor ID on which the calling thread is currently executing.
The gethomelgroup() function returns the home locality group ID of the calling thread.
See DESCRIPTION.
No errors are defined.
Both the current CPU and the home locality group can change at any time.
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | getcpuid() is Stable; gethomelgroup() is Obsolete. |
MT-Level | MT-Safe |
meminfo(2), p_online(2), processor_bind(2), processor_info(2), pset_assign(2), pset_bind(2), pset_info(2), sysconf(3C), lgrp_home(3LGRP), attributes(7), psradm(8), psrinfo(8), psrset(8)
The gethomelgroup() function is obsolete and might be removed in a future release. It has been replaced by lgrp_home(3LGRP).
April 16, 2003 | OmniOS |