[PATCH 4/8] [I/OAT] Utility functions for offloading sk_buff to iovec copies

2006-03-10 Thread Chris Leech
Provides for pinning user space pages in memory, copying to iovecs, and copying from sk_buffs including fragmented and chained sk_buffs. Signed-off-by: Chris Leech <[EMAIL PROTECTED]> --- drivers/dma/Makefile |3 drivers/dma/iovlock.c | 301

Re: [PATCH 4/8] [I/OAT] Utility functions for offloading sk_buff to iovec copies

2006-03-04 Thread Andrew Morton
Chris Leech <[EMAIL PROTECTED]> wrote: > > + > +#define NUM_PAGES_SPANNED(start, length) \ > + ((PAGE_ALIGN((unsigned long)start + length) - \ > + ((unsigned long)start & PAGE_MASK)) >> PAGE_SHIFT) static inline all-lower-case functions are much nicer. > +/* > + * Lock down all the iovec

[PATCH 4/8] [I/OAT] Utility functions for offloading sk_buff to iovec copies

2006-03-03 Thread Chris Leech
Provides for pinning user space pages in memory, copying to iovecs, and copying from sk_buffs including fragmented and chained sk_buffs. Signed-off-by: Chris Leech <[EMAIL PROTECTED]> --- drivers/dma/Makefile |1 drivers/dma/iovlock.c | 320