Thread (2 messages) 2 messages, 2 authors, 2009-07-01

Re: Unix socket sendpage

From: Rami Rosen <hidden>
Date: 2009-07-01 06:37:58

Hello,
  This is just a wild guess: maybe it has to do with that
 sendfile()  is for copying  data between one file descriptor and
another; sendfile() invokes sendpage() of the corresponding protocol.

With AF_UNIX sockets, which are IPC mechanism,  you can pass file
descriptors from one process to another
using control messages (ancillary data).
You can do it with SCM_RIGHTS type control message. (the msg_control
of msg should point to a cmsghdr with SCM_RIGHTS as its cmsg_type)

Just want to reiterate that I am not sure about it.

Regards,
Rami Rosen



2009/6/29 Rémi Denis-Courmont [off-list ref]:
       Hello,

Am I unaware of some fundamental reasons why AF_UNIX sockets do not support
sendpage(splice)? or is it just that nobody bothered to write the code?

--
Rémi Denis-Courmont
Nokia Devices R&D, Maemo Software, Helsinki

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help