kmalloc > 128k

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

 




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

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux