1SPI_SYNC(9) Serial Peripheral Interface (S SPI_SYNC(9)
2
3
4
6 spi_sync - blocking/synchronous SPI data transfers
7
9 int spi_sync(struct spi_device * spi, struct spi_message * message);
10
12 spi
13 device with which data will be exchanged
14
15 message
16 describes the data transfers
17
19 can sleep
20
22 This call may only be used from a context that may sleep. The sleep is
23 non-interruptible, and has no timeout. Low-overhead controller drivers
24 may DMA directly into and out of the message buffers.
25
26 Note that the SPI deviceĀ“s chip select is active during the message,
27 and then is normally disabled between messages. Drivers for some
28 frequently-used devices may want to minimize costs of selecting a chip,
29 by leaving it selected in anticipation that the next message will go to
30 the same chip. (That may increase power usage.)
31
32 Also, the caller is guaranteeing that the memory associated with the
33 message will not be freed before this call returns.
34
35 It returns zero on success, else a negative error code.
36
38Kernel Hackers Manual 2.6. June 2019 SPI_SYNC(9)