usb_buffer_map(9)

usb_buffer_map9

Create dma mapping(s) for an urb

Usage

struct urb * usb_buffer_map(struct urb * urb);

Arguments

urb

urb whose transfer_buffer/setup_packet will be mapped

Overview

URB_NO_TRANSFER_DMA_MAP is added to urb->transfer_flags if the operation succeeds. If the device is connected to this system through a non-DMA controller, this operation always succeeds.

This call would normally be used for an urb which is reused, perhaps as the target of a large periodic transfer, with usb_buffer_dmasync calls to synchronize memory and dma state.

Reverse the effect of this call with usb_buffer_unmap.

Return

Either NULL (indicating no buffer could be mapped), or urb.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.