mips_cps_numvps(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

Welcome to the Kernel API Manual, bestie! πŸ’– This is mips_cps_numvps(9), and it's literally the page that tells you how many VPs a core has. Main character energy fr fr. πŸ‘‘

mips_cps_numvps β€” return the number of VPs (threads) supported by a core


πŸ¦‹ SYNOPSIS πŸ¦‹

unsigned int mips_cps_numvps (unsigned int cluster , unsigned int core
);

🌸 ARGUMENTS 🌸

  • cluster β€” the ID of the cluster containing the core we want to examine. Like, which cluster's group chat are we checking? πŸ‘€
  • core β€” the ID of the core whose VP count we want. This is the exact core bestie whose squad size we're curious about, iykyk.

πŸŽ€ DESCRIPTION πŸŽ€

Returns the number of Virtual Processors (VPs, ie. hardware threads) that are supported by the given core in the given cluster. The way that it just takes a cluster ID and a core ID and hands you back the VP count is so clean, no cap. ✨ Lowkey obsessed with how simple this is.

🚨 Important vibe check: if the core or the kernel do not support hardware mutlti-threading this returns 1. Periodt.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./arch/mips/include/asm/mips-cps.h


xoxo, source/version: ./arch/mips/include/asm Β· date: October 2026 Β· page: mips_cps_numvps(9) πŸ’…βœ¨

πŸ“¦ where this page comes from