'\" t .\" Title: spi_read .\" 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_READ" "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_read \- SPI synchronous read .SH "SYNOPSIS" .HP \w'int\ spi_read('u .BI "int spi_read(struct\ spi_device\ *\ " "spi" ", void\ *\ " "buf" ", size_t\ " "len" ");" .SH "ARGUMENTS" .PP \fIspi\fR .RS 4 device from which data will be read .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 reads 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