---
name: "spi_write"
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_write"
---

# spi\_write(9)

SPI synchronous write

## NAME

spi\_write - SPI synchronous write

## SYNOPSIS

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

## ARGUMENTS

*spi*

device to which data will be written

*buf*

data buffer

*len*

data buffer size

## CONTEXT

can sleep

## DESCRIPTION

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

## COPYRIGHT
