Allocating small amounts of memory

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

 



Hey,
I have to allocate small amounts of memory (lots of strings actually)
ranging from 1 byte to 200-300 bytes (or can be more also!) in
kernel-space. If i use kmalloc that would allocate memory in terms of
"pages" ..right? So that would waste too much memory.

How should i allocate memory for this purpose then? all these strings are
allocated a different times, and their size can change.

Ideas?

-Anks


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[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