Re: about the tcp_sendpage()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/18/07, R. wen <rwen2012@xxxxxxxxx> wrote:> Thanks for your reply, I do know that, there is a inet_stream_ops structure> there, and also the function sock_sendpage() here as follow.>> But is there a system call that use it? Or how does the user-application use> this function?>> Thanks.>> /*********************************************************/> static ssize_t sock_sendpage(struct file *file, struct page *page,>                  int offset, size_t size, loff_t *ppos, int more)> {>     struct socket *sock;>     int flags;>>     sock = file->private_data;>>     flags = !(file->f_flags & O_NONBLOCK) ? 0 : MSG_DONTWAIT;>     if (more)>         flags |= MSG_MORE;>>     return sock->ops->sendpage(sock, page, offset, size, flags);> }> /****************************************************************/>> 2007/4/18, Parag N(पराग़) < panemade@xxxxxxxxx>:> > Hi,> > On 4/18/07, rwen2012 < rwen2012@xxxxxxxxx> wrote:> > >> > >> > > HI, all> > >> > >      I can't find which system call invoke the tcp_sendpage(),> > > could anyone tell me how to use this sendpage function?> >> > look at af_inet.c> > >> > > thanks.> > >> > > R.wen> > >> > >  ________________________________> > >> > > rwen2012> > > 2007-04-18> >>>Technically, Linux offers only one socket system call,sys_socket-call(), which multiplexes to all other system calls via thefirst parameter.  This means that socket-based protocols could providenew and different system calls via a library and a mux, although thisis never done in practice

Font: http://72.14.209.104/search?q=cache:qkwxhtM2sIoJ:www.arl.wustl.edu/projects/netv_internal/ppt/linux_kernel.ppt+sendpage+sockets&hl=pt-BR&ct=clnk&cd=11&gl=br
-- Best Regards
Alan Menegotto��.n��������+%����w�j)p���{.n����z�ޖw�n'���q���b�������v��m�����Y�����


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux