i2o_dma_realloc(9)

i2o_dma_realloc9

Realloc dma memory

Usage

int i2o_dma_realloc(struct device * dev, struct i2o_dma * addr, size_t len, gfp_t gfp_mask);

Arguments

dev

struct device pointer to the PCI device of the I2O controller

addr

pointer to a i2o_dma struct DMA buffer

len

new length of memory

gfp_mask

GFP mask

Overview

If there was something allocated in the addr, free it first. If len > 0 than try to allocate it and write the addresses back to the addr structure. If len == 0 set the virtual address to NULL.

Returns the 0 on success or negative error code on failure.

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.