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

NAME

6       spi_sync_locked - version of spi_sync with exclusive bus usage
7

SYNOPSIS

9       int spi_sync_locked(struct spi_device * spi,
10                           struct spi_message * message);
11

ARGUMENTS

13       spi
14           device with which data will be exchanged
15
16       message
17           describes the data transfers
18

CONTEXT

20       can sleep
21

DESCRIPTION

23       This call may only be used from a context that may sleep. The sleep is
24       non-interruptible, and has no timeout. Low-overhead controller drivers
25       may DMA directly into and out of the message buffers.
26
27       This call should be used by drivers that require exclusive access to
28       the SPI bus. It has to be preceded by a spi_bus_lock call. The SPI bus
29       must be released by a spi_bus_unlock call when the exclusive access is
30       over.
31
32       It returns zero on success, else a negative error code.
33
35Kernel Hackers Manual 3.10         June 2019                SPI_SYNC_LOCKED(9)
Impressum