spi_w8r8(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ spi_w8r8(9) β€” the Kernel API Manual page, bestie ✨

okay so this is spi_w8r8(9) from the Kernel API Manual, and it's giving β€œtiny SPI helper with main character energy” πŸ’…


🌸 NAME 🌸

spi_w8r8 β€” SPI synchronous 8 bit write followed by 8 bit read, no cap ✨

πŸŽ€ SYNOPSIS πŸŽ€

ssize_t spi_w8r8 (struct spi_device *spi , u8 cmd );

πŸ’– ARGUMENTS πŸ’–

  • spi β€” the device with which data will be exchanged 🫢
  • cmd β€” the command to be written before data is read back πŸŽ€

😴 CONTEXT 😴

can sleep β€” yes bestie, this one is allowed to snooze πŸ˜­πŸ’€

πŸ¦‹ DESCRIPTION πŸ¦‹

Callable only from contexts that can sleep. That's the whole vibe check: if your context can't sleep, this is not the function for you, periodt πŸ’€

πŸ”₯ RETURN πŸ”₯

the (unsigned) eight bit number returned by the device, or else a negative error code 😭

🌈 SEE ALSO 🌈

Kernel file ./include/linux/spi β€” plus all these linked besties:


mwah πŸ’‹ this page came from ./include/linux/spi and it's dated October 2026 β€” iconic, honestly 🫢✨

πŸ“¦ where this page comes from