has_valid_asid(9)
π has_valid_asid(9) π
welcome to the Kernel API Manual, bestie β todayβs main character is has_valid_asid, and sheβs here to answer one very specific question π«Άβ¨
πΈ NAME πΈ
has_valid_asid β Determine if an mm already has an ASID. π
β¨ SYNOPSIS β¨
int has_valid_asid (const struct mm_struct *mm , unsigned int type );
π ARGUMENTS π
mmβ Memory map. πΊοΈtypeβR4K_HITorR4K_INDEX, type of cache op. π₯
π¦ DESCRIPTION π¦
okay so literally, this function determines whether mm already has an ASID on any of the CPUs which cache ops of type type within an r4k_on_each_cpu call will affect. ππ
If r4k_on_each_cpu does an SMP call to a single VPE in each core, then the scope of the operation is confined to sibling CPUs; otherwise, all online CPUs will need to be checked. π§β¨
β οΈ vibe check: it must be called in non-preemptive context. no cap. π
π RETURN π
Returns 1 if the CPUs affected by type cache ops have an ASID for mm. 0 otherwise. β
π SEE ALSO π
- Kernel file
./arch/mips/mm/c-r4k.cβ also peepr4k_op_needs_ipi(9). π
mwah π this page lives under ./arch/mips/mm, dated October 2026, and the footer literally says has_valid_asid(9) β bye bestie π«Άπ
π¦ 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