User: Password:
|
|
Subscribe / Log in / New account

Sharing buffers between devices

Sharing buffers between devices

Posted Aug 19, 2011 16:21 UTC (Fri) by cavok (subscriber, #33216)
Parent article: Sharing buffers between devices

Is this "buffer fd" a proper fd?
May sharing buffers between devices cross also the application boundary?
In such case, what happens to the fd number?


(Log in to post comments)

Sharing buffers between devices

Posted Aug 19, 2011 21:20 UTC (Fri) by zlynx (subscriber, #2285) [Link]

There is a mechanism to send file descriptors across Unix local sockets between processes. Network servers have used this a lot in order to send a socket to another process for doing the actual work.

This is sendmsg/recvmsg with SCM_RIGHTS, I believe.


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds