ep93xx_spi_read_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

  • -EINPROGRESS when the current transfer was not yet completed β€” she's still cooking, give her a sec πŸ”₯
  • 0 otherwise β€” 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:


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