sbi_remote_hfence_gvma(9)
π sbi_remote_hfence_gvma β Kernel API Manual β¨
okay so bestie, welcome to sbi_remote_hfence_gvma(9), the manual page for the little RISC-V function that goes and yells at other harts for you π¦ it literally executes HFENCE.GVMA instructions on the remote harts you point at, scoped to a guest physical address range. group-chat blast, but for fences. no cap.
π NAME π
sbi_remote_hfence_gvma β execute HFENCE.GVMA instructions on given remote harts for the specified guest physical address range. that's the whole vibe fr fr π
β¨ SYNOPSIS β¨
int sbi_remote_hfence_gvma (const struct cpumask *cpu_mask , unsigned long start , unsigned long size );
πΈ ARGUMENTS πΈ
cpu_maskβ a cpu mask containing all the target harts π like, who are we sending this to. everybody in the mask gets the treatment.startβ start of the guest physical address π the beginning of the range, bestie.sizeβ total size of the guest physical address range π how far the range goes fromstart. yes it's a size, not an end. we been knew.
β RETURN β
None. π that's it. nothing comes back. no return value, no sneak peek, no little treat for you at the end. the function does its thing and dips π
π SEE ALSO π
kernel file ./arch/riscv/kernel/sbi.c π«Ά and the whole friend group of SBI calls, all holding hands:
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_sfence_vma_asid(9)sbi_remote_hfence_gvma_vmid(9)sbi_remote_hfence_vvma(9)sbi_remote_hfence_vvma_asid(9)sbi_probe_extension(9)
like, the _vmid one and the _asid ones are literally cousins of this function, iykyk π₯
ngl there is genuinely a whole flock of remote_hfence pages and they all look alike at a glance β read the name twice, bestie, or you'll page the wrong cousin π
and that's the page!! πΈ this came out of ./arch/riscv/kernel in October 2026, and the manual page itself is sbi_remote_hfence_gvma(9) β mwah, periodt, go fence something 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