Standard C Library Functions getcpuid(3C)
NAME
getcpuid, gethomelgroup - obtain information on scheduling
decisions
SYNOPSIS
#include
processoridt getcpuid(void);
ushortt gethomelgroup(void);
DESCRIPTION
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.
RETURN VALUES
See DESCRIPTION.
ERORS
No errors are defined.
USAGE
Both the current CPU and the home locality group can change
at any time.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability getcpuid() is Stable;
gethomelgroup() is
Obsolete.
MT-Level MT-Safe
SEE ALSO
psradm(1M), psrinfo(1M), psrset(1M), ponline(2),
processorbind(2), processorinfo(2), psetassign(2),
psetbind(2), psetinfo(2), meminfo(2), lgrphome(3LGRP),
SunOS 5.11 Last change: 16 Apr 2003 1
Standard C Library Functions getcpuid(3C)
sysconf(3C), attributes(5)
NOTES
The gethomelgroup() function is obsolete and might be
removed in a future release. It has been replaced by
lgrphome(3LGRP).
SunOS 5.11 Last change: 16 Apr 2003 2
|