mips_cm_vp_id(9)
πΈ 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:
mips_cm_phys_base(9)mips_cm_l2sync_phys_base(9)mips_cm_error_report(9)mips_cm_probe(9)mips_cm_present(9)mips_cm_update_property(9)mips_cm_has_l2sync(9)mips_cm_l2sync(9)mips_cm_revision(9)mips_cm_max_vp_width(9)mips_cm_lock_other(9)mips_cm_unlock_other(9)mips_cm_lock_other_cpu(9)
signed with strawberry-emoji energy by the Kernel API Manual, dated October 2026, sourced from ./arch/mips/include/asm ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms