Linux MIPS Architecture development
 help / color / mirror / Atom feed
* zero copy
@ 2005-12-06 12:06 kernel coder
  2005-12-06 15:53 ` Matt Porter
  0 siblings, 1 reply; 2+ messages in thread
From: kernel coder @ 2005-12-06 12:06 UTC (permalink / raw)
  To: linux-mips

hi,
    i'm trying to track the code flow of sendfile system call.Mine
ethernet card doesn't have scatter gather and checksum calculation
features.So stack should be making a copy of data.

Please tell me where in sendfile code flow,check for scatter gather
and cecksum features is made so that stack can decide whether to copy
data from user space or not.

lhrkernelcoder

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: zero copy
  2005-12-06 12:06 zero copy kernel coder
@ 2005-12-06 15:53 ` Matt Porter
  0 siblings, 0 replies; 2+ messages in thread
From: Matt Porter @ 2005-12-06 15:53 UTC (permalink / raw)
  To: kernel coder; +Cc: linux-mips

On Tue, Dec 06, 2005 at 04:06:06AM -0800, kernel coder wrote:
> hi,
>     i'm trying to track the code flow of sendfile system call.Mine
> ethernet card doesn't have scatter gather and checksum calculation
> features.So stack should be making a copy of data.
> 
> Please tell me where in sendfile code flow,check for scatter gather
> and cecksum features is made so that stack can decide whether to copy
> data from user space or not.

Is your grep really that broken? :)

net/ipv4/tcp.c:tcp_sendpage() is where you find the check and
fallback to sendmsg if you follow it through.

-Matt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-12-06 15:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-06 12:06 zero copy kernel coder
2005-12-06 15:53 ` Matt Porter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox