---
name: "__i2c_transfer"
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/__i2c_transfer"
---

# \_\_i2c\_transfer(9)

unlocked flavor of i2c\_transfer

## NAME

\_\_i2c\_transfer - unlocked flavor of i2c\_transfer

## SYNOPSIS

**int \_\_i2c\_transfer(struct i2c\_adapter \*** *adap***, struct i2c\_msg \*** *msgs***, int** *num***);**

## ARGUMENTS

*adap*

Handle to I2C bus

*msgs*

One or more messages to execute before STOP is issued to terminate the operation; each message begins with a START.

*num*

Number of messages to be executed.

## DESCRIPTION

Returns negative errno, else the number of messages executed.

Adapter lock must be held when calling this function. No debug logging takes place. adap-\>algo-\>master\_xfer existence isn't checked.

## COPYRIGHT
