---
name: "i2o_dma_realloc"
section: "9"
platform: "linux"
package: "linux-manual-2.6.26"
version: "2.6.26-29"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/i2o_dma_realloc"
---

# i2o\_dma\_realloc(9)

Realloc DMA memory

## NAME

i2o\_dma\_realloc - Realloc DMA memory

## SYNOPSIS

**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

## DESCRIPTION

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.

## COPYRIGHT
