1SPI_WRITE(9)            Serial Peripheral Interface (S            SPI_WRITE(9)
2
3
4

NAME

6       spi_write - SPI synchronous write
7

SYNOPSIS

9       int spi_write(struct spi_device * spi, const u8 * buf, size_t len);
10

ARGUMENTS

12       spi
13           device to which data will be written
14
15       buf
16           data buffer
17
18       len
19           data buffer size
20

CONTEXT

22       can sleep
23

DESCRIPTION

25       This writes the buffer and returns zero or a negative error code.
26       Callable only from contexts that can sleep.
27
29Kernel Hackers Manual 2.6.         June 2019                      SPI_WRITE(9)
Impressum