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);
}
/****************************************************************/
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