Re: [3.12 1/3] Move kmallocXXX functions to common code

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

 



On Wed, 14 Aug 2013, Pekka Enberg wrote:

> The introduction kmalloc_large() needs to happen in a
> separate patch. What exactly is the benefit of adding the
> new API, btw? Why don't people just use the page allocator
> directly?

The advantage of kmalloc_large is that is has the same calling convention
as kmalloc. get_free_pages() etc require page addresses and return
unsigned longs meaning that conversions are required.

kmalloc_large functionality is already in use by slob and slub and
therefore is easy to make commonly available.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]