mips_cps_fir...e_in_cluster(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mips_cps_first_online_in_cluster β€” from the Kernel API Manual, bestie πŸŽ€

Okay so picture this: it's giving "am I the first one here?" energy, but for CPUs. That's literally the whole vibe of this page from the Kernel API Manual (mips_cps_fir...e_in_cluster(9), yes the title is truncated, we don't talk about it πŸ’€).

✨ SYNOPSIS ✨

unsigned int mips_cps_first_online_in_cluster (int *first_cpu );

🌸 ARGUMENTS 🌸

  • first_cpu β€” okay so this is the pointer where the answer gets dropped off. On exit it holds the first other online CPU in cluster, or nr_cpu_ids if the function returns true. So like, if you're the first one online, you get nr_cpu_ids in there instead of an actual CPU. No cap, that's just how it is 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

Determine whether the local CPU is the first to be brought online in its cluster β€” meaning, are there any other online CPUs hanging out in the local cluster? It's the vibe check: is the group chat empty except for you, or are your besties already here?

Returns true if this CPU is first online, else false. Periodt. πŸ’…

Lowkey important: true means "it's just me in here", and that's also exactly when *first_cpu ends up as nr_cpu_ids β€” the two facts are besties, iykyk.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./arch/mips/include/asm/mips-cps.h, plus the whole friend group:


That's the whole read. Sourced from ./arch/mips/include/asm, stamped October 2026, page mips_cps_fir...e_in_cluster(9) β€” slay, go be the first online in your cluster bestie, we love that for you βœ¨πŸ’–πŸ§š

πŸ“¦ where this page comes from