---
name: "i2o_block_prep_req_fn"
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_prep_req_fn"
---

# i2o\_block\_prep\_req\_fn(9)

Allocates I2O block device specific struct

## NAME

i2o\_block\_prep\_req\_fn - Allocates I2O block device specific struct

## SYNOPSIS

**int i2o\_block\_prep\_req\_fn(struct request\_queue \*** *q***, struct request \*** *req***);**

## ARGUMENTS

*q*

request queue for the request

*req*

the request to prepare

## DESCRIPTION

Allocate the necessary i2o\_block\_request struct and connect it to the request. This is needed that we not lose the SG list later on.

Returns BLKPREP\_OK on success or BLKPREP\_DEFER on failure.

## COPYRIGHT
