bcm2835_wait_tx_fifo_empty(9)
π bcm2835_wait_tx_fifo_empty(9) π
okay so bestie, this is from the Kernel API Manual, and we're talking about bcm2835_wait_tx_fifo_empty β yes, the whole name, slay. It's giving βtiny function, very real consequences,β so let's get into it. π
β¨ NAME β¨
bcm2835_wait_tx_fifo_empty β busy-wait for TX FIFO to empty. periodt. π
πΈ SYNOPSIS πΈ
void bcm2835_wait_tx_fifo_empty (struct bcm2835_spi *bs );
π¦ ARGUMENTS π¦
bsβ the BCM2835 SPI controller. that's the one, bestie. π«Ά
π₯ DESCRIPTION π₯
okay so real talk: the caller must ensure that the RX FIFO can accommodate as many bytes as have been written to the TX FIFO. no cap, this is not optional. π
Transmission is halted once the RX FIFO is full, and that causes this function to spin forever. like, literally forever. π
β οΈ so if you set this up wrong, bcm2835_wait_tx_fifo_empty is not gonna rescue you β it's gonna spin. forever. bestie, please check your FIFO situation first. π
π SEE ALSO π
go read these next, iykyk π«Ά:
- Kernel file
./drivers/spi/spi-bcm2835.c struct bcm2835_spi(9)struct bcm2835_spidev(9)bcm2835_rd_fifo_count(9)bcm2835_wr_fifo_count(9)bcm2835_rd_fifo_blind(9)bcm2835_wr_fifo_blind(9)bcm2835_spi_transfer_prologue(9)bcm2835_spi_undo_prologue(9)bcm2835_spi_dma_rx_done(9)bcm2835_spi_dma_tx_done(9)bcm2835_spi_prepare_sg(9)bcm2835_spi_transfer_one_dma(9)
mwah π β signed off from ./drivers/spi, October 2026, still living in the Kernel API Manual. π
π¦ 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