---
name: "i2o_block_sglist_alloc"
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_block_sglist_alloc"
---

# i2o\_block\_sglist\_alloc(9)

Allocate the SG list and map it

## NAME

i2o\_block\_sglist\_alloc - Allocate the SG list and map it

## SYNOPSIS

**int i2o\_block\_sglist\_alloc(struct i2o\_controller \*** *c***, struct i2o\_block\_request \*** *ireq***, u32 \*\*** *mptr***);**

## ARGUMENTS

*c*

I2O controller to which the request belongs

*ireq*

I2O block request

*mptr*

message body pointer

## DESCRIPTION

Builds the SG list and map it to be accessible by the controller.

Returns 0 on failure or 1 on success.

## COPYRIGHT
