sbi_fwft_set(9)
π sbi_fwft_set(9) β like, the Kernel API Manual one, bestie
okay so. welcome to the page for sbi_fwft_set π this is from the Kernel API Manual, and it's about setting a feature on the local hart. yes, local, as in the hart you're literally on right now. main character hart energy only β¨
πΈ NAME πΈ
sbi_fwft_set β set a feature on the local hart π
like... that's it. that's the whole job. set the feature. on this hart. slay.
β¨ SYNOPSIS β¨
int sbi_fwft_set (u32 feature , unsigned long value , unsigned long flags );
three args, returns an int, we move. π¦
π«Ά ARGUMENTS π«Ά
featureβ the feature ID you wanna set π this is which feature, bestie, choose wisely.valueβ the feature value you're setting it to π this is what you're setting it to.flagsβ the FWFT feature set flags π the lil extra vibes that go with the set.
π₯ RETURN π₯
0 on success, and an appropriate linux error code otherwise π so like... check it. fr fr. zero means we ate, anything else means something went sideways and it's giving error.
π SEE ALSO π
kernel file: ./arch/riscv/kernel/sbi.c β go read the source, iykyk π
and the whole friend group:
sbi_console_putchar(9)sbi_console_getchar(9)sbi_shutdown(9)__sbi_set_timer_v01(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(9)sbi_remote_hfence_gvma_vmid(9)sbi_remote_hfence_vvma(9)sbi_remote_hfence_vvma_asid(9)sbi_probe_extension(9)
π reminder that this all lives under./arch/riscv/kernel, dated October 2026, and the page itself issbi_fwft_set(9). don't @ me.
okay that's the whole page, go set some features responsibly, ily, bye π§ββοΈπ
π¦ 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