#include <sys/processor.h>processorid_t getcpuid(void);
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.
No errors are defined.
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.
See attributes(5) for descriptions of the following attributes:
|ATTRIBUTE TYPE||ATTRIBUTE VALUE|