In order to implement the gem export callback, we need a type to represent
struct dma_buf. So - this commit introduces a set of stub bindings for
dma_buf. These bindings provide a ref-counted DmaBuf object, but don't
currently implement any functionality for using the DmaBuf.
Signed-off-by: Lyude
Hi Lyude,
On 13.09.25 00:43, Lyude Paul wrote:
> Agh! Sorry for the spam, I should have double checked the code before writing
> this as I realized the reason I didn't implement this. Correct me if I'm wrong
> here since it's the first time I've interacted very much with this API in the
> kernel b
JFYI - After talking a bit to the Asahi folks, it seems like that we're
actually a ways off from Asahi having any actual usecase for the export()
callback - so I'm going to just drop the dma_buf bits here for the next
version of the patch series
On Mon, 2025-09-15 at 10:59 +0200, Christian König w
Agh! Sorry for the spam, I should have double checked the code before writing
this as I realized the reason I didn't implement this. Correct me if I'm wrong
here since it's the first time I've interacted very much with this API in the
kernel but: it seems like the reference counting for dma_buf obj
…though, I just realized immediately after sending that response to you that I
mentioned that this type is reference counted in the commit message - but I
never actually added an implementation for AlwaysRefCounted. So, that's at
least one additional thing I will make sure to add. Similarly though,
On Fri, 2025-09-12 at 10:25 +0200, Christian König wrote:
> On 12.09.25 00:57, Lyude Paul wrote:
> > In order to implement the gem export callback, we need a type to represent
> > struct dma_buf. So - this commit introduces a set of stub bindings for
> > dma_buf. These bindings provide a ref-counte
On 12.09.25 00:57, Lyude Paul wrote:
> In order to implement the gem export callback, we need a type to represent
> struct dma_buf. So - this commit introduces a set of stub bindings for
> dma_buf. These bindings provide a ref-counted DmaBuf object, but don't
> currently implement any functionality
On Thu, Sep 11, 2025 at 06:57:40PM -0400, Lyude Paul wrote:
> In order to implement the gem export callback, we need a type to represent
> struct dma_buf. So - this commit introduces a set of stub bindings for
> dma_buf. These bindings provide a ref-counted DmaBuf object, but don't
> currently impl