|
XenevaOS
|
#include <dma-buf.h>
Public Attributes | |
| bool | allow_peer2peer |
| void(* | invalidate_mappings )(struct dma_buf_attachment *attach) |
struct dma_buf_attach_ops - importer operations for an attachment
Attachment operations implemented by the importer.
| bool dma_buf_attach_ops::allow_peer2peer |
@allow_peer2peer:
If this is set to true the importer must be able to handle peer resources without struct pages.
| void(* dma_buf_attach_ops::invalidate_mappings) (struct dma_buf_attachment *attach) |
@invalidate_mappings: [optional] notification that the DMA-buf is moving
If this callback is provided the framework can avoid pinning the backing store while mappings exists.
This callback is called with the lock of the reservation object associated with the dma_buf held and the mapping function must be called with this lock held as well. This makes sure that no mapping is created concurrently with an ongoing move operation.
See the kdoc for dma_buf_invalidate_mappings() for details on the required behavior.