mips_cps_numcores(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ mips_cps_numcores(9) β€” Kernel API Manual πŸ¦‹

🌸 NAME 🌸

mips_cps_numcores β€” return the number of cores present in a cluster ✨

✨ SYNOPSIS ✨

okay so the signature is literally this, no cap:

unsigned int mips_cps_numcores (unsigned int cluster );

πŸŽ€ ARGUMENTS πŸŽ€

  • cluster β€” the ID of the cluster whose core count we want, fr fr πŸ’…

πŸ’– DESCRIPTION πŸ’–

so what does it actually do? It returns the value of the PCORES field of the GCR_CONFIG register plus 1 β€” or 0 if no Coherence Manager is present. That's it, that's the whole vibe 🫢

🌈 SEE ALSO 🌈

Kernel file ./arch/mips/include/asm/mips-cps.h β€” and the whole friend group:


that's the page, bestie 🫢 β€” source/version: ./arch/mips/include/asm, date: October 2026. periodt πŸ‘‘

πŸ“¦ where this page comes from