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

kmalloc > 128k




Hi,


I came across a problem in the mtd nand flash driver for Linux 2.6.16, where the driver tries to allocate about 135k using kmalloc. Now, it used to be that kmalloc couldn't handle more than 128k, but for instance looking in the 3rd edition of Linux Device Drivers, it more cryptically says that 128k is guaranteed, but the depending on the architecture and kernel version.

I have not yet dived into the code, but does anyone know what this limitation was historically, why it has changed and what governs it in the later kernels?

/Ricard
--
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30