'\" t .\" Title: spi_write .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Serial Peripheral Interface (SPI) .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SPI_WRITE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Serial Peripheral Interface (S" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" spi_write \- SPI synchronous write .SH "SYNOPSIS" .HP \w'int\ spi_write('u .BI "int spi_write(struct\ spi_device\ *\ " "spi" ", const\ void\ *\ " "buf" ", size_t\ " "len" ");" .SH "ARGUMENTS" .PP \fIspi\fR .RS 4 device to which data will be written .RE .PP \fIbuf\fR .RS 4 data buffer .RE .PP \fIlen\fR .RS 4 data buffer size .RE .SH "CONTEXT" .PP can sleep .SH "DESCRIPTION" .PP This function writes the buffer \fIbuf\fR\&. Callable only from contexts that can sleep\&. .SH "RETURN" .PP zero on success, else a negative error code\&. .SH "COPYRIGHT" .br