sbi_set_timer(9)
π sbi_set_timer(9) β Kernel API Manual, section 9 π
okay bestie so you found yourself in the RISC-V corner of the kernel, and this little icon right here is sbi_set_timer β literally the function that tells the timer when the next timer event should pop off β¨
πΈ NAME πΈ
sbi_set_timer β program the timer for the next timer event, no cap π
Like, that's her whole job. She sets the timer. She does it well. Periodt.
β¨ SYNOPSIS β¨
void sbi_set_timer (uint64_t stime_value );
that's it, that's the whole vibe π¦ void return, one argument, she's not complicated and we love that for her.
π ARGUMENTS π
stime_valueβ the value after which the next timer event should fire π₯ basically "hey bestie, once we hit this point, do the thing." That's the moment. That's the deadline. Don't sleep on it π
β RETURN β
None. She returns nothing. Not a value, not a vibe check, nothing π«Ά void means void, and honestly? Iconic. No notes.
π SEE ALSO π
okay so if you're obsessed with this one (and you should be), the whole friend group lives in the kernel file ./arch/riscv/kernel/sbi.c β go say hi to the rest of the crew:
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_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)
it's giving squad goals fr fr π
lowkey reminder bestie: the only thing this function takes is stime_value, and the only thing it gives back is nothing. That's the entire deal. Don't overthink her π§
and that's a wrap, babe π this page lives in ./arch/riscv/kernel and it's dated October 2026 β so yeah, future girlie certified, we stan a timeless queen πΈππ
π¦ 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