sbi_remote_sfence_vma_asid(9)
β¨ sbi_remote_sfence_vma_asid(9) β¨
okay so bestie, we're in the Kernel API Manual today and this one is a whole vibe. it's the sbi_remote_sfence_vma_asid page and honestly? it's giving "tell your friends to clean their rooms, but specifically." π
πΈ NAME πΈ
sbi_remote_sfence_vma_asid β Execute SFENCE.VMA instructions on given remote harts for a virtual address range belonging to a specific ASID or not.
like, you're the manager fr fr. you point at some harts and you're like "y'all. flush that TLB range for this ASID. now." π«Ά
π SYNOPSIS π
int sbi_remote_sfence_vma_asid (const struct cpumask *cpu_mask ,
unsigned long start , unsigned long size , unsigned long asid );
returns an int, takes four args, no cap. β¨
π¦ ARGUMENTS π¦
cpu_maskβ A cpu mask containing all the target harts. this is your group chat of harts who are getting the message πstartβ Start of the virtual address. where the range begins, bestie πsizeβ Total size of the virtual address range. how much of it we're talking about πasidβ The value of address space identifier (ASID), orFLUSH_TLB_NO_ASIDfor flushing all address spaces. so you can be all "just this one ASID pls" or "actually flush everything" β icon behavior either way π
π RETURN π
0 on success, appropriate linux error code otherwise.
so like, 0 is the slay, anything else is the "it's not you it's the error code" π
π§ SEE ALSO π§
Kernel file ./arch/riscv/kernel/sbi.c β and also these absolute legends, go read them, iykyk:
sbi_console_putchar(9)sbi_console_getchar(9)sbi_shutdown(9)__sbi_set_timer_v01(9)sbi_fwft_set(9)sbi_fwft_set_cpumask(9)sbi_set_timer(9)sbi_send_ipi(9)sbi_remote_fence_i(9)sbi_remote_hfence_gvma(9)sbi_remote_hfence_gvma_vmid(9)sbi_remote_hfence_vvma(9)sbi_remote_hfence_vvma_asid(9)sbi_probe_extension(9)
ngl there's no BUGS section here, so we're just out here living our best documented life πΈ
and that's the page, bestie! π this little gem lives down in ./arch/riscv/kernel and it was dated October 2026 β go off, calendar icon ποΈβ¨ slay, and remember: flush responsibly π«Άπ₯
π¦ 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