ENUM SPI_MEM_DATA_DIR(9)
π enum spi_mem_data_dir(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this one's a little baby page in ./include/linux/spi, and it's genuinely so cute once you get it. It's all about the enum that describes the direction of a SPI memory data transfer from the controller perspective. That's it. That's the whole vibe. But like, it matters, iykyk π¦
β¨ NAME β¨
enum spi_mem_data_dir β describes the direction of a SPI memory data transfer from the controller perspective π
πΈ SYNOPSIS πΈ
enum spi_mem_data_dir {
SPI_MEM_NO_DATA ,
SPI_MEM_DATA_IN ,
SPI_MEM_DATA_OUT
};
like, three constants, no extras, no notes. she's compact and she knows it π
π§ Constants π§
okay so here's the whole cast of characters, no cap:
SPI_MEM_NO_DATAβ literally no data transferred. nothing. zero. the void. the empty group chat π«ΆSPI_MEM_DATA_INβ data coming from the SPI memory. it's arriving, bestie, it's inbound π₯SPI_MEM_DATA_OUTβ data sent to the SPI memory. it's leaving, waving goodbye π€
π₯ SEE ALSO π₯
go read these next, they're all in the Kernel file ./include/linux/spi/spi-mem.h and they're iconic in their own right π
struct spi_mem_op(9)struct spi_mem_dirmap_info(9)struct spi_mem_dirmap_desc(9)struct spi_mem(9)spi_mem_set_drvdata(9)spi_mem_get_drvdata(9)struct spi_controller_mem_ops(9)struct spi_controller_mem_caps(9)struct spi_mem_driver(9)
ngl, that's a lot of SEE ALSOs for one teeny enum, but she's connected, she knows people π
okay that's the page bestie, you ate that π mwah π
β signed off from ./include/linux/spi, dated October 2026, from your fave enum spi_mem_data_dir(9) πβ
π¦ 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