参照元

説明

引数

返り値

参考

実装

/**
 * dma_buf_unmap_attachment - unmaps and decreases usecount of the buffer;might
 * deallocate the scatterlist associated. Is a wrapper for unmap_dma_buf() of
 * dma_buf_ops.
 * @attach:     [in]    attachment to unmap buffer from
 * @sg_table:   [in]    scatterlist info of the buffer to unmap
 * @direction:  [in]    direction of DMA transfer
 *
 */
void dma_buf_unmap_attachment(struct dma_buf_attachment *attach,
                                struct sg_table *sg_table,
                                enum dma_data_direction direction)
{
        might_sleep();
        if (WARN_ON(!attach || !attach->dmabuf || !sg_table))
                return;
        attach->dmabuf->ops->unmap_dma_buf(attach, sg_table,
                                                direction);
}
EXPORT_SYMBOL_GPL(dma_buf_unmap_attachment);

コメント


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2016-02-25 (木) 13:55:24