1SPI_READ(9) Serial Peripheral Interface (S SPI_READ(9)
23
4
NAME
6spi_read - SPI synchronous read
7
SYNOPSIS
9int spi_read(struct spi_device * spi, u8 * buf, size_t len);
10
ARGUMENTS
12spi
13device from which data will be read
1415
buf
16data buffer
1718
len
19data buffer size
20
CONTEXT
22can sleep
23
DESCRIPTION
25This reads the buffer and returns zero or a negative error code.
26Callable only from contexts that can sleep.
27
COPYRIGHT
29Kernel Hackers Manual 2.6. June 2019 SPI_READ(9)