Scroll to navigation

SKB_FRAG_DMA_MAP(9) Linux Networking SKB_FRAG_DMA_MAP(9)

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

struct device * dev
the device to map the fragment to

const skb_frag_t * frag

the paged fragment to map

size_t offset

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

size_t size

the number of bytes to map

enum dma_data_direction dir

the direction of the mapping (PCI_DMA_*)

DESCRIPTION

Maps the page associated with frag to device.

COPYRIGHT

July 2017 Kernel Hackers Manual 4.11