---
name: "skb_frag_dma_map"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/skb_frag_dma_map"
---

# skb\_frag\_dma\_map(9)

maps a paged fragment via the DMA API

## NAME

skb\_frag\_dma\_map - maps a paged fragment via the DMA API

## SYNOPSIS

**dma\_addr\_t skb\_frag\_dma\_map(struct device \*** *dev***, const skb\_frag\_t \*** *frag***, size\_t** *offset***, size\_t** *size***, enum dma\_data\_direction** *dir***);**

## ARGUMENTS

*dev*

the device to map the fragment to

*frag*

the paged fragment to map

*offset*

the offset within the fragment (starting at the fragment's own offset)

*size*

the number of bytes to map

*dir*

the direction of the mapping (**PCI\_DMA\_**\*)

## DESCRIPTION

Maps the page associated with *frag* to *device*.

## COPYRIGHT
