i2o_dma_map_single(9)

i2o_dma_map_single9

Map pointer to controller and fill in i2o message.

Usage

dma_addr_t i2o_dma_map_single(struct i2o_controller * c, void * ptr, size_t size, enum dma_data_direction direction, u32 ** sg_ptr);

Arguments

c

I2O controller

ptr

pointer to the data which should be mapped

size

size of data in bytes

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_single. The pointer sg_ptr will only be set to the end of the SG list if the allocation was successful.

Returns DMA address which must be checked for failures using dma_mapping_error.

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.