Re: Unix socket sendpage

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rami Rosen
Date: Tuesday, June 30, 2009 - 11:32 pm

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 <remi.denis-courmont@nokia.com>:
--
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Unix socket sendpage, Rémi, (Mon Jun 29, 5:13 am)
Re: Unix socket sendpage, Rami Rosen, (Tue Jun 30, 11:32 pm)