[PATCH 2/4] dma-buf: Add dma_buf_try_get()

2024-12-17 Thread Wei Lin Guay
From: Jason Gunthorpe Summary: Used to increment the refcount of the dma buf's struct file, only if the refcount is not zero. Useful to allow the struct file's lifetime to control the lifetime of the dmabuf while still letting the driver to keep track of created dmabufs. Signed-off-by: Jason Gun

[PATCH 2/4] dma-buf: Add dma_buf_try_get()

2024-12-17 Thread Wei Lin Guay
From: Jason Gunthorpe Summary: Used to increment the refcount of the dma buf's struct file, only if the refcount is not zero. Useful to allow the struct file's lifetime to control the lifetime of the dmabuf while still letting the driver to keep track of created dmabufs. Signed-off-by: Jason Gun