ep93xx_spi_read_write(9)
π ep93xx_spi_read_write(9) β the Kernel API Manual glow-up β¨
okay so bestie, this is a page from the Kernel API Manual and it's about ep93xx_spi_read_write, which is genuinely one of those little functions that keeps the whole SPI vibe going. no cap. let's get into it π
πΈ NAME πΈ
ep93xx_spi_read_write β literally just perform next RX/TX transfer. that's the whole job. iconic behaviour, honestly π¦
β¨ SYNOPSIS β¨
int ep93xx_spi_read_write(struct spi_controller *host);
she takes one arg and hands you back an int. simple. clean. main character energy π
π«Ά ARGUMENTS π«Ά
hostβ the SPI host. yes, that's it. that's the argument. your SPI host, your bestie, the one carrying the whole controller situation π
π DESCRIPTION π
okay so here's what she does: this function transfers the next bytes (or half-words) to/from the RX/TX FIFOs. the way that it just moves data like it's nothing π
and listen β if you call it several times, the whole transfer will be completed. she's not a one-and-done girlie, she's a keep going until it's done girlie.
returns:
-EINPROGRESSwhen the current transfer was not yet completed β she's still cooking, give her a sec π₯0otherwise β we're done here, slay β
heads up, when this function is finished, the RX FIFO should be empty and the TX FIFO should be full. like, that's the vibe check. if that's not the state of things, something's off fr fr π
π SEE ALSO π
go read these too, bestie, they're all in the same friend group:
- Kernel file
./drivers/spi/spi-ep93xx.c - struct
ep93xx_spi(9) ep93xx_spi_calc_divisors(9)ep93xx_spi_dma_prepare(9)ep93xx_spi_dma_finish(9)
and that's the whole page, periodt π
this little section lives in ./drivers/spi, it's dated October 2026, and it comes to you straight from the Kernel API Manual β go forth and transfer those bytes, queen ππ
π¦ 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