CPU_NUMBER(9)
π¦ CPU_NUMBER(9) π¦
okay bestie, this page is straight outta the Kernel Developer's Manual and it's giving "tiny but iconic" energy. we're talking about one very specific little function, and yes, she slays.
β¨ NAME β¨
cpu_number β unique CPU identification number π
πΈ SYNOPSIS πΈ
#include <sys/types.h>
#include <machine/cpu.h>
cpuid_t
cpu_number(void);
π DESCRIPTION π
So, cpu_number() returns a unique CPU identification number for the CPU that this thread is running on. That's it. That's the whole assignment. β¨
And plot twist: it may also be implemented as a macro. cute, right? π
π SEE ALSO π
curcpu(9)β go check her out too, bestie π«Ά
mwah π this little page was brought to you by Debian, dated April 13, 2010, and it's filed under CPU_NUMBER(9) β periodt. ππ
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2002 The NetBSD Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms