__ssp_update_div(9)
๐
__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 astruct 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 ๐ฅ
- Kernel file
./drivers/tty/serial/sifive.candstruct sifive_serial_port(9) __ssp_early_writel(9)__ssp_early_readl(9)__ssp_writel(9)__ssp_readl(9)sifive_serial_is_txfifo_full(9)__ssp_transmit_char(9)__ssp_transmit_chars(9)__ssp_enable_txwm(9)__ssp_enable_rxwm(9)__ssp_disable_txwm(9)__ssp_disable_rxwm(9)__ssp_receive_char(9)__ssp_receive_chars(9)__ssp_update_baud_rate(9)__ssp_set_stop_bits(9)__ssp_wait_for_xmitr(9)sifive_serial_clk_notifier(9)
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
- 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