Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dma buf sharing between multiple processes

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

Userspace entity requests for a file-descriptor (fd) which is a handle to the anonymous file associated with the buffer. It can then share the fd with other drivers and/or processes.

My question is, "any fd allocated is unique to a process. so, i think if we pass this to another process(passed fd is invalid in this process context) how can it get the handle to dma buffer?"

like image 540
Ravi Chandra Avatar asked Nov 30 '25 19:11

Ravi Chandra


1 Answers

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

like image 185
mgalgs Avatar answered Dec 03 '25 11:12

mgalgs



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!