---
name: "spi_read"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/spi_read"
---

# spi\_read(9)

SPI synchronous read

## NAME

spi\_read - SPI synchronous read

## SYNOPSIS

**int spi\_read(struct spi\_device \*** *spi***, void \*** *buf***, size\_t** *len***);**

## ARGUMENTS

*spi*

device from which data will be read

*buf*

data buffer

*len*

data buffer size

## CONTEXT

can sleep

## DESCRIPTION

This reads the buffer and returns zero or a negative error code. Callable only from contexts that can sleep.

## COPYRIGHT
