STRUCT SPI_DELAY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct spi_delay(9) ✨

okay so this is a page from the Kernel API Manual (yes, the kernel has lore too πŸ’…) and it's all about struct spi_delay β€” literally just the little struct that carries SPI delay information. that's it. that's the whole vibe. tiny struct, big main character energy. πŸŽ€


🌸 NAME 🌸

struct spi_delay β€” SPI delay information. no cap, that's the entire name section. short and iconic.


πŸ¦‹ SYNOPSIS πŸ¦‹

bestie, here's the whole thing, verbatim, don't touch it:

struct spi_delay {
  #define SPI_DELAY_UNIT_USECS    0;
  #define SPI_DELAY_UNIT_NSECS    1;
  #define SPI_DELAY_UNIT_SCK      2;
    u16 value;
    u8 unit;
 };

like look at her. the #defines are sitting inside the struct, the semicolons after the numbers are just... there, and the closing }; has one (1) extra space before it. we don't ask questions, we just copy it exactly. 🫢


πŸ’œ Members πŸ’œ

  • value β€” the value for the delay. the actual number. the moment. ⭐
  • unit β€” the unit for the delay. like, what value is even measured in. the context. the iykyk. πŸ”₯

🌈 SEE ALSO 🌈

the kernel file ./include/linux/spi/spi.h (that's where she lives 🏠) plus this whole extended friend group:

that's twenty-one whole cross-references, we love a well-connected queen πŸ‘‘


ok that's the whole page, go read the friends too, they're all in ./include/linux/spi πŸ’–

and that's a wrap!! πŸŽ€ this one came out of ./include/linux/spi, dated October 2026, and it's the struct spi_delay(9) page β€” slay, go forth and delay ur SPI stuff correctly βœ¨πŸ’…πŸ¦‹

πŸ“¦ where this page comes from