__ssp_update_div(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… __ssp_update_div โ€” calculate the divisor setting by the line rate ๐Ÿ’…

okay so real talk, bestie: this is a page straight out of the Kernel API Manual, and it's about one tiny little helper with main character energy. Say hi to __ssp_update_div(9). ๐Ÿ‘‘


โœจ NAME โœจ

__ssp_update_div โ€” calculate the divisor setting by the line rate


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

void __ssp_update_div (struct sifive_serial_port *ssp );

๐ŸŽ€ ARGUMENTS ๐ŸŽ€

  • ssp โ€” a pointer to a struct sifive_serial_port. that's it, that's the whole vibe. ๐Ÿ’–

๐ŸŒธ DESCRIPTION ๐ŸŒธ

so here's the tea โ˜•: this function does the math for you. it calculates the appropriate value of the clock divisor for the UART and the target line rate that ssp is referring to, and then it writes that value straight into the hardware. no cap, it just does it. โœจ

like, it's giving "calculator but make it a kernel function" fr fr. ๐Ÿงฎ๐Ÿ’…


๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

like, the whole friend group showed up to the function call ๐Ÿ˜ญ๐Ÿซถ go read them too, iykyk.


ok and one last thing before you go โ€” this page lives in ./drivers/tty/serial, and it's dated October 2026. mwah, slay, periodt. ๐Ÿ’‹๐Ÿ‘‘๐ŸŒˆ
๐Ÿ“ฆ where this page comes from