'\" t .\" Title: i2c_smbus_xfer .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: I2C and SMBus Subsystem .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "I2C_SMBUS_XFER" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "I2C and SMBus Subsystem" .\" ----------------------------------------------------------------- .\" * 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" i2c_smbus_xfer \- execute SMBus protocol operations .SH "SYNOPSIS" .HP \w's32\ i2c_smbus_xfer('u .BI "s32 i2c_smbus_xfer(struct\ i2c_adapter\ *\ " "adapter" ", u16\ " "addr" ", unsigned\ short\ " "flags" ", char\ " "read_write" ", u8\ " "command" ", int\ " "protocol" ", union\ i2c_smbus_data\ *\ " "data" ");" .SH "ARGUMENTS" .PP \fIadapter\fR .RS 4 Handle to I2C bus .RE .PP \fIaddr\fR .RS 4 Address of SMBus slave on that bus .RE .PP \fIflags\fR .RS 4 I2C_CLIENT_* flags (usually zero or I2C_CLIENT_PEC) .RE .PP \fIread_write\fR .RS 4 I2C_SMBUS_READ or I2C_SMBUS_WRITE .RE .PP \fIcommand\fR .RS 4 Byte interpreted by slave, for protocols which use such bytes .RE .PP \fIprotocol\fR .RS 4 SMBus protocol operation to execute, such as I2C_SMBUS_PROC_CALL .RE .PP \fIdata\fR .RS 4 Data to be read or written .RE .SH "DESCRIPTION" .PP This executes an SMBus protocol operation, and returns a negative errno code else zero on success\&. .SH "COPYRIGHT" .br