sbi_fwft_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


πŸ’€ reminder that this all lives under ./arch/riscv/kernel, dated October 2026, and the page itself is sbi_fwft_set(9). don't @ me.

okay that's the whole page, go set some features responsibly, ily, bye πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from