man.bsd.lv manual page server

Manual Page Search Parameters

CPU_NUMBER(9) Kernel Developer's Manual CPU_NUMBER(9)

cpu_numberunique CPU identification number

#include <sys/types.h>
#include <machine/cpu.h>

cpuid_t
cpu_number(void);

The () function returns an unique CPU identification number for the CPU that this thread is running on. It may also be implemented as a macro.

curcpu(9)

April 13, 2010 NetBSD-9.2