>In a network driver, I tried to allocate memory for DMA buffer of length
>132 KB and the call (kmalloc()) failed. Hacking through kmalloc.c, I found
>that it does not allow allocating memory more than (128K - 24) bytes, if the
>page size is 4KB.
>Me questions are -
>1. Why is that limitation ?
>2. Is there any way to allocate 132 KB memory (physically contiguous) ?
Use __get_free_pages() by hand specifying the order or mm you need. order
0 -> 1 page, order 2 -> 2page, order 3 -> 4 page etc..etc..
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
Please read the FAQ at http://www.tux.org/lkml/