CPU_NUMBER(9)

πŸ“¦ version 11.0, in nixpkgs unstable

πŸ¦‹ 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