i2o_dma_map_sg(9)

i2o_dma_map_sg9

Map a sg list to controller and fill in i2o message.

Usage

int i2o_dma_map_sg(struct i2o_controller * c, struct scatterlist * sg, int sg_count, enum dma_data_direction direction, u32 ** sg_ptr);

Arguments

c

I2O controller

sg

SG list to be mapped

sg_count

number of elements in the SG list

direction

DMA_TO_DEVICE / DMA_FROM_DEVICE

sg_ptr

pointer to the SG list inside the I2O message

Overview

This function does all necessary DMA handling and also writes the I2O SGL elements into the I2O message. For details on DMA handling see also dma_map_sg. The pointer sg_ptr will only be set to the end of the SG list if the allocation was successful.

Returns 0 on failure or 1 on success.

Releases

2 releases since Debian 4.0 (Etch); the text changed 1 time.

  1. 4.0
  2. 5.0

From linux-manual-2.6.26 2.6.26-29 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.