mips_cm_lock_other_cpu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 -- for block. 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:


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