sbi_remote_sfence_vma_asid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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), or FLUSH_TLB_NO_ASID for 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:


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