STRUCT SPI_ENGINE_MESSAGE_STATE(9)
πΈ NAME πΈ
okay so bestie, welcome to the Kernel API Manual β¨ β this page is all about struct spi_engine_message_state(9), aka the SPI engine per-message state. itβs giving βbookkeeping for one SPI messageβ and honestly? iconic. π
β¨ SYNOPSIS β¨
struct spi_engine_message_state {
unsigned cmd_length;
const uint16_t *cmd_buf;
struct spi_transfer *tx_xfer;
unsigned int tx_length;
const uint8_t *tx_buf;
struct spi_transfer *rx_xfer;
unsigned int rx_length;
uint8_t *rx_buf;
};
π Members π
cmd_lengthβ Number of elements incmd_bufarray. the count bestie π’cmd_bufβ Array of commands not yet written to CMD FIFO. waiting-room energy ποΈtx_xferβ Next xfer withtx_bufnot yet fully written to TX FIFO. next up, no cap π€tx_lengthβ Size oftx_bufin bytes. byte math slay πtx_bufβ Bytes not yet written to TX FIFO. still queued, still cute πrx_xferβ Next xfer withrx_bufnot yet fully written to RX FIFO. incoming bestie π₯rx_lengthβ Size oftx_bufin bytes. (yes,tx_bufβ thatβs literally what the page says π)rx_bufβ Bytes not yet written to the RX FIFO. the receive pile π§Ί
π¦ SEE ALSO π¦
- Kernel file
./drivers/spi/spi-axi-spi-engine.cβ go peek if you want the source tea ππ
mwah π this page lives under ./drivers/spi, dated October 2026, and itβs the struct spi_...essage_state(9) entry β bye bestie, go slay some SPI! π«Άβ¨
π¦ 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