Query: getcpuid
OS: opensolaris
Section: 3c
Links: opensolaris man pages all man pages
Forums: forum home forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
getcpuid(3C) Standard C Library Functions getcpuid(3C)NAMEgetcpuid, gethomelgroup - obtain information on scheduling decisionsSYNOPSIS#include <sys/processor.h> processorid_t getcpuid(void); ushort_t gethomelgroup(void);DESCRIPTIONThe 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.RETURN VALUESSee DESCRIPTION.ERRORSNo errors are defined.USAGEBoth the current CPU and the home locality group can change at any time.ATTRIBUTESSee attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |getcpuid() is Stable; geth- | | |omelgroup() is Obsolete. | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+SEE ALSOpsradm(1M), psrinfo(1M), psrset(1M), p_online(2), processor_bind(2), processor_info(2), pset_assign(2), pset_bind(2), pset_info(2), mem- info(2), lgrp_home(3LGRP), sysconf(3C), attributes(5)NOTESThe gethomelgroup() function is obsolete and might be removed in a future release. It has been replaced by lgrp_home(3LGRP). SunOS 5.11 16 Apr 2003 getcpuid(3C)