Hello, I am trying to read a DMA buff ,allocated and manged by driver "A". reader is a different driver "B" (which simply make DMA buffer accessible by /proc to user space). Can dmabuf APIs can be used for all reader and writer synchronization issues ? I want to use dmabuf between two drivers , do i need to go to user space and use "fd" to get struct dma_buf * from dma_buf_get(int fd).
there is any way to use dmabuf APIs in kernel space only (between two drivers ) without going to user space ?
example code will certainly help.