mips_cm_lock_other_cpu(9)
π mips_cm_lock_other_cpu(9) β from the Kernel API Manual, bestie β¨
Okay so picture this: you're deep in MIPS land, you gotta poke at another CPU's registers, and the kernel docs just handed you... this. Don't worry, I got you π«Ά This is mips_cm_lock_other_cpu, and it's lowkey iconic once you get what it's doing.
π NAME π
mips_cm_lock_other_cpu β lock access to redirect/other region
Like, that's the whole vibe. You're locking down access to the redirect/other region. Periodt. π
β¨ SYNOPSIS β¨
void mips_cm_lock_other_cpu (unsigned int cpu , unsigned int block );
Two unsigned ints in, nothing out. Void return, she doesn't owe you a result, she just does the thing π₯
πΈ ARGUMENTS πΈ
cpuβ the other CPU whose register we want to access. That's it, that's the whole note. You point at a CPU, you get at its registers π―blockβ-- undescribed --π
Not me having to tell you that the docs literally say-- undescribed --forblock. That's not me being lazy, that's genuinely what the page says. The manpage said "no thoughts, head empty" on that one and honestly? Respect for the honesty π
π¦ DESCRIPTION π¦
So what does she do? She configures the redirect/other region for the local core/VP β and yes, which one it is depends on the CM revision, so vibe check your revision first, bestie β and she points it at the specified cpu and the register block. Target acquired, main character energy π
The way that this is basically the same thing as calling mips_cm_lock_other, except it's the friendly version β it accepts a Linux CPU number for convenience π So instead of you out here doing the conversion gymnastics yourself, she takes the nice Linux CPU number and handles it. Convenience queen. We love her for it π
π SEE ALSO π
Everything in the kernel file ./arch/mips/include/asm/mips-cm.h, plus this whole squad right here β go say hi, they all run in the same friend group:
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_vp_id(9)mips_cm_lock_other(9)mips_cm_unlock_other(9)
Okay that's the whole page, no cap π Go lock that region, bestie β you're literally doing great.
π Sign-off realness: this little beauty lives in ./arch/mips/include/asm and the page is dated October 2026. Slay. π
π¦ 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