Re: 128 kbytes allocation limit for kmalloc?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[email protected] wrote:
Hello,

is it possible to allocate more than 128 kbytes in a kernel lkm module?
When I allocate more than 128 kbytes with the kmalloc call, kmalloc returns NULL.


No. Use vmalloc(). Keep in mind that kernel memory is a limited resource, so don't use more memory that you really have to.

--
				Brian Gerst
-
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/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux