Re: about the tcp_sendpage()

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

 



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


[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