Sharing dma buf across multiple processes

I am trying to understand the dma buf structure in linux kernel and am looking at this article http://lwn.net/Articles/489703/ which says

The entity namespace queries for a file descriptor (fd), which is a descriptor for the anonymous file associated with the buffer. It can then share fd with other drivers and / or processes.

My question is that any dedicated fd is unique to a process. So I guess if we pass this to another process (passed to fd is not valid in this process context) how can he get the handle to the dma buffer? "

+3


source to share


1 answer


The way it works is that you need to use a special fd sharing mechanism like unix domain sockets or binder .



0


source







All Articles