Remove the given attachment from dmabufs attachments list; optionally calls detach of dma_buf_ops for device-specific detach
void dma_buf_detach(struct dma_buf * dmabuf, struct dma_buf_attachment * attach);
dmabuf
[in] buffer to detach from.
attach
[in] attachment to be detached; is free'd after this call.