Updated: 2022/Sep/29

Please read Privacy Policy. It's for your privacy.


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

NAME
     cpu_number - unique CPU identification number

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

     cpuid_t
     cpu_number(void);

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

SEE ALSO
     curcpu(9)

NetBSD 10.99                    April 13, 2010                    NetBSD 10.99