ENUM SPI_MEM_DATA_DIR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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