Messages in this thread | | | Date | Wed, 28 Sep 2005 14:55:09 +0200 | From | Hagen Paul Pfeifer <> | Subject | Re: 128 kbytes allocation limit for kmalloc? |
| |
* mailarch@archivum.info | 2005-09-27 19:40:32 [+0200]:
>Hello, > >is it possible to allocate more than 128 kbytes in a kernel lkm module?
Yes, multiple kmalloc calls. You can implement your own memory managment in top of it. For further informations: cat /proc/slabinfo
>When I allocate more than 128 kbytes with the kmalloc call, kmalloc returns NULL.
If you need one continues chunk of memory you must take vmalloc. But note the performance penalty and some other disadvantages (dma, ...).
HGN
-- Standards are industry's way of codifying obsolescence. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |