参照元

説明

引数

返り値

参考

実装

/**
 * dma_buf_detach - Remove the given attachment from dmabuf's attachments list;
 * optionally calls detach() of dma_buf_ops for device-specific detach
 * @dmabuf:     [in]    buffer to detach from.
 * @attach:     [in]    attachment to be detached; is free'd after this call.
 *
 */
void dma_buf_detach(struct dma_buf *dmabuf, struct dma_buf_attachment *attach)
{
        if (WARN_ON(!dmabuf || !attach))
                return;
        mutex_lock(&dmabuf->lock);
        list_del(&attach->node);
        if (dmabuf->ops->detach)
                dmabuf->ops->detach(dmabuf, attach);
        mutex_unlock(&dmabuf->lock);
        kfree(attach);
}
EXPORT_SYMBOL_GPL(dma_buf_detach);

コメント


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