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

# i2o\_device\_add(9)

allocate a new I2O device and add it to the IOP

## NAME

i2o\_device\_add - allocate a new I2O device and add it to the IOP

## SYNOPSIS

**int i2o\_device\_add(struct i2o\_controller \*** *c***, i2o\_lct\_entry \*** *entry***);**

## ARGUMENTS

*c*

I2O controller that the device is on

*entry*

LCT entry of the I2O device

## DESCRIPTION

Allocate a new I2O device and initialize it with the LCT entry. The device is appended to the device list of the controller.

Returns zero on success, or a -ve errno.

## COPYRIGHT
