spi_w8r8(9)
β¨ 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:
struct spi_statistics(9)struct spi_delay(9)struct spi_device(9)struct spi_driver(9)spi_unregister_driver(9)module_spi_driver(9)struct spi_controller(9)struct spi_res(9)struct spi_transfer(9)struct spi_message(9)spi_message_init_with_transfers(9)spi_is_bpw_supported(9)spi_bpw_to_bytes(9)spi_controller_xfer_timeout(9)struct spi_replaced_transfers(9)spi_sync_transfer(9)spi_write(9)spi_read(9)spi_w8r16(9)spi_w8r16be(9)struct spi_board_info(9)
mwah π this page came from ./include/linux/spi and it's dated October 2026 β iconic, honestly π«Άβ¨
π¦ 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