bcm2835_wait_tx_fifo_empty(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 🫢:


mwah πŸ’‹ β€” signed off from ./drivers/spi, October 2026, still living in the Kernel API Manual. πŸ’–

πŸ“¦ where this page comes from