On Tue, 9 Jan 2001, Christoph Hellwig wrote: > > Also the tuple argument you gave earlier isn't right in this specific case: > > when doing sendfile from pagecache to an fs, you have a bunch of pages, > an offset in the first and a length that makes the data end before last > page's end. No. Look at sendfile(). You do NOT have a "bunch" of pages. Sendfile() is very much a page-at-a-time thing, and expects the actual IO layers to do it's own scatter-gather. So sendfile() doesn't want any array at all: it only wants a single page-offset-length tuple interface. The _lower-level_ stuff (ie TCP and the drivers) want the "array of tuples", and again, they do NOT want an array of pages, because if somebody does two sendfile() calls that fit in one packet, it really needs an array of tuples. In short, the kiobuf interface is _always_ the wrong one. Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Ingo Molnar
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Benjamin C.R. LaHaise
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Stephen C. Tweedie
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Ingo Molnar
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Christoph Hellwig
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... David S. Miller
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Linus Torvalds
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Ingo Molnar
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Linus Torvalds
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Christoph Hellwig
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Linus Torvalds
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Christoph Hellwig
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Linus Torvalds
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Christoph Hellwig
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Linus Torvalds
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Andrew Morton
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Linus Torvalds
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Andrew Scott
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Christoph Hellwig
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Rik van Riel
- Re: [PLEASE-TESTME] Zerocopy networking patch, 2.4.0... Christoph Hellwig