mips_cm_vp_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, welcome to mips_cm_vp_id(9) from the Kernel API Manual β€” manual name folded in right here so we don’t have to do the boring header-copy thing πŸ’…

mips_cm_vp_id β€” calculate the hardware VP ID for a CPU. That’s the assignment, and it ate ✨


✨ SYNOPSIS ✨

unsigned int mips_cm_vp_id (unsigned int cpu );

🫢 ARGUMENTS 🫢

  • cpu β€” the CPU whose VP ID to calculate. That’s the whole input, no cap πŸ¦‹

πŸ’… DESCRIPTION πŸ’…

okay so picture this: hardware like the GIC uses identifiers for VPs, and those identifiers may not match the CPU numbers used by Linux. Rude? A little. Iconic? Also yes 😭

This function calculates the hardware VP identifier corresponding to a given CPU. That’s it β€” it’s giving β€œtranslate the Linux CPU number into the hardware’s VP ID” energy, and honestly? We love a clear little mapping function 🌈


πŸŽ€ RETURN πŸŽ€

the VP ID for the CPU. Yep β€” that’s the return value, bestie: the VP ID for the CPU, periodt πŸ’–


🌈 SEE ALSO 🌈

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

The whole squad is:


signed with strawberry-emoji energy by the Kernel API Manual, dated October 2026, sourced from ./arch/mips/include/asm πŸ“πŸ’œ

πŸ“¦ where this page comes from