usb_buffer_unmap_sg
Prev | Chapter 5. USB Core APIs | Next

## Name

usb_buffer_unmap_sg — free DMA mapping(s) for a scatterlist

## Synopsis

`void usb_buffer_unmap_sg (` | const struct usb_device * dev,
| int is_in,
| struct scatterlist * sg,
| int n_hw_ents`)`;

## Arguments

`dev`

  device to which the scatterlist will be mapped

`is_in`

  mapping transfer direction

`sg`

  the scatterlist to unmap

`n_hw_ents`

  the positive return value from usb_buffer_map_sg

## Description

Reverses the effect of `usb_buffer_map_sg`.

Prev | Up | Next
usb_buffer_dmasync_sg | Home | usb_hub_clear_tt_buffer