User Tools

Site Tools


solaris:getcpuid.3c

getcpuid


NAME

getcpuid, gethomelgroup - obtain information on scheduling decisions

SYNOPSIS

#include <sys/processor.h>

processorid_t getcpuid(void);

ushort_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 locality group ID of the calling thread.

RETURN VALUES

See DESCRIPTION.

ERRORS

No errors are defined.

USAGE

Both the current CPU and the home locality group can change at any time.

ATTRIBUTES

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

The getcpuid() function is Committed. The gethomelgroup() function is Obsolete.

SEE ALSO

NOTES

The gethomelgroup() function is obsolete and might be removed in a future release. It has been replaced by lgrp_home(3LGRP).


solaris/getcpuid.3c.txt · Last modified: 2023/07/19 08:58 by A User Not Logged in