---
name: "i2c_smbus_write_block_data"
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_smbus_write_block_data"
---

# i2c\_smbus\_write\_block\_data(9)

SMBus “block write” protocol

## NAME

i2c\_smbus\_write\_block\_data - SMBus “block write” protocol

## SYNOPSIS

**s32 i2c\_smbus\_write\_block\_data(const struct i2c\_client \*** *client***, u8** *command***, u8** *length***, const u8 \*** *values***);**

## ARGUMENTS

*client*

Handle to slave device

*command*

Byte interpreted by slave

*length*

Size of data block; SMBus allows at most 32 bytes

*values*

Byte array which will be written.

## DESCRIPTION

This executes the SMBus “block write” protocol, returning negative errno else zero on success.

## COPYRIGHT
