sifive_seria..._txfifo_full(9)
๐ sifive_seria..._txfifo_full(9)
okay so bestie, we're deep in the Kernel API Manual today and this one is a little function from the sifive serial driver that you're gonna be obsessed with. it's literally called sifive_serial_is_txfifo_full and yeah, the page title is truncated with ... because the kernel devs are dramatic like that. iykyk. ๐
โจ NAME โจ
sifive_serial_is_txfifo_full โ is the TXFIFO full? that's it. that's the whole question. ๐
๐ธ SYNOPSIS ๐ธ
int sifive_serial_is_txfifo_full (struct sifive_serial_port *ssp );
๐ฆ ARGUMENTS ๐ฆ
sspโ pointer to astruct sifive_serial_port. yes bestie, it's that struct. the main character. ๐
๐ DESCRIPTION ๐
okay so what this does is it reads the transmit FIFO "full" bit. simple as that. โจ
if the TX FIFO is full, you get a non-zero value back. if there's still space left, you get zero. slay.
the whole vibe of this function is prevention โ it's intended to be used to prevent writes to the TX FIFO when it's full. like a little bouncer at the club door checking if there's room. ๐ซถ no cap, that's genuinely what it's for.
โญ RETURN โญ
SIFIVE_SERIAL_TXDATA_FULL_MASK(non-zero) if the transmit FIFO is full ๐ญ0if space remains ๐
๐ SEE ALSO ๐
Kernel file ./drivers/tty/serial/sifive.c plus this whole squad of friends:
struct sifive_serial_port(9)__ssp_early_writel(9)__ssp_early_readl(9)__ssp_writel(9)__ssp_readl(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_div(9)__ssp_update_baud_rate(9)__ssp_set_stop_bits(9)__ssp_wait_for_xmitr(9)sifive_serial_clk_notifier(9)
ngl the amount of __ssp_ functions here is giving "group chat with 18 people and every single one of them has the same name energy" ๐ but they're all iconic in their own way, go read them.
and that's the page bestie! ๐ง this little gem lives in ./drivers/tty/serial and it was dated October 2026 โ yes, 2026, we're manifesting the future ๐ฎ๐. so cute, so documented. 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