1USB_BUFFER_MAP(9)                USB Core APIs               USB_BUFFER_MAP(9)
2
3
4

NAME

6       usb_buffer_map - create DMA mapping(s) for an urb
7

SYNOPSIS

9       struct urb * usb_buffer_map(struct urb * urb);
10

ARGUMENTS

12       urb
13           urb whose transfer_buffer/setup_packet will be mapped
14

DESCRIPTION

16       Return value is either null (indicating no buffer could be mapped), or
17       the parameter. URB_NO_TRANSFER_DMA_MAP is added to urb->transfer_flags
18       if the operation succeeds. If the device is connected to this system
19       through a non-DMA controller, this operation always succeeds.
20
21       This call would normally be used for an urb which is reused, perhaps as
22       the target of a large periodic transfer, with usb_buffer_dmasync calls
23       to synchronize memory and dma state.
24
25       Reverse the effect of this call with usb_buffer_unmap.
26
28Kernel Hackers Manual 2.6.       November 2011               USB_BUFFER_MAP(9)
Impressum