ENUM SPI_TRANSFER_CMD(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum spi_transfer_cmd(9) πŸ’…

okay bestie, so this is a page from the Kernel API Manual, and it's about enum spi_transfer_cmd β€” literally just the vibe check for SPI transfer commands. tiny page, huge main character energy. let's get into it ✨


🌸 NAME 🌸

enum spi_transfer_cmd β€” spi transfer commands, no cap


πŸŽ€ SYNOPSIS πŸŽ€

enum spi_transfer_cmd {
    SPI_TX ,
    SPI_RX ,
    SPI_DUPLEX

};

like, that's the whole thing. three constants. three little icons. πŸ’–


πŸ¦‹ Constants πŸ¦‹

okay so these are the three members and honestly each one is doing its own thing:

  • SPI_TX β€” the SPI peripheral TX command, i.e. it's giving transmit. sending the data out, periodt. πŸ“€
  • SPI_RX β€” the SPI peripheral RX command, so now we're receiving. the data comes TO you. obsessed. πŸ“₯
  • SPI_DUPLEX β€” the SPI peripheral Duplex command β€” both directions at the same time, highkey the overachiever of the group. πŸ”
ngl bestie, the whole enum is just those three. no extra options, no defaults, no env vars, no exit statuses. it's a short one. sometimes that's the vibe πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

  • the Kernel file ./include/linux/dma/qcom-gpi-dma.h
  • struct gpi_spi_config(9)
  • struct gpi_i2c_config(9)

🫢 the cute sign-off 🫢

this page lives in the ./include/linux/dma corner of the Kernel API Manual, dated October 2026 β€” and it signs off as enum spi_transfer_cmd(9), exactly like it opened. full circle, iconic behavior honestly. go read the structs, bestie, iykyk πŸ’œπŸŽ€

πŸ“¦ where this page comes from