Aubrey Li <[email protected]> wrote: > as checked in packet_set_ring, buffer size must be a multiple of PAGE_SIZE, > --------------------packet_set_ring------------------------ > if (unlikely(req->tp_block_size & (PAGE_SIZE - 1))) > > So why not use __get_free_pages rather than kmalloc, Because kmalloc() may be able to get us a smaller chunk of memory. Actually, calling __get_free_pages() might be a better, and then release the excess pages. > so that we have pagetables to count? There are no pagetables in NOMMU-mode. David - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- From: "Aubrey Li" <[email protected]>
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- From: David Howells <[email protected]>
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- From: Eric Dumazet <[email protected]>
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- References:
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- From: "Aubrey Li" <[email protected]>
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- From: Robin Getz <[email protected]>
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- From: "Wu, Bryan" <[email protected]>
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- From: David Howells <[email protected]>
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- From: Robin Getz <[email protected]>
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- From: "Aubrey Li" <[email protected]>
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- From: David Howells <[email protected]>
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- From: "Aubrey Li" <[email protected]>
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- From: David Howells <[email protected]>
- Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- Prev by Date: regression with gammu on 2.6.21-rc7
- Next by Date: Re: [RFC 2/2] Input: phantom, add a new driver
- Previous by thread: Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- Next by thread: Re: [PATCH] CONFIG_PACKET_MMAP should depend on MMU
- Index(es):