mips_cm_lock_other(9)
π NAME π
mips_cm_lock_other β lock access to redirect/other region.
Hi bestie!! Welcome to the mips_cm_lock_other(9) page from the Kernel API Manual β¨ This is the function that locks down access to the redirect/other region so nobody else can swoop in and mess with it. π
π SYNOPSIS π
void mips_cm_lock_other (unsigned int cluster , unsigned int core ,
unsigned int vp , unsigned int block );
πΈ ARGUMENTS πΈ
clusterβ the other cluster to be accessed. Like, the cluster youβre visiting, not your home cluster π¦coreβ the other core to be accessed. The core youβre targeting, bestie.vpβ the VP within the other core to be accessed. The VP inside that other core, specifically.blockβ the register block to be accessed. The register block in question π
β¨ DESCRIPTION β¨
Okay so hereβs the tea: mips_cm_lock_other() configures the redirect/other region for the local core/VP β which one depends on the CM revision, iykyk β so it targets the cluster, core, vp & register block you specified. π«Ά
You must call it before using the redirect/other region, and you must follow it with a call to mips_cm_unlock_other() when access to the redirect/other region is complete. No skipping steps, bestie. π
This function acquires a spinlock, so the code between it & mips_cm_unlock_other() calls cannot be pre-empted by anything which may reconfigure the redirect/other region, and cannot be interfered with by another VP in the core. Because of that, calls to this function should not be nested. Periodt. π
π¦ SEE ALSO π¦
Kernel file: ./arch/mips/include/asm/mips-cm.h β go look, bestie π
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_unlock_other(9)mips_cm_lock_other_cpu(9)
Source/section: ./arch/mips/include/asm Β· date: October 2026 Β· page: mips_cm_lock_other(9) ππ¦β¨
π¦ 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