[lkml]   [2013]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC 06/23] mm/memblock: Add memblock early memory allocation apis

On Mon, Oct 14, 2013 at 10:39:54AM -0400, Santosh Shilimkar wrote:
> >> +void __memblock_free_early(phys_addr_t base, phys_addr_t size);
> >> +void __memblock_free_late(phys_addr_t base, phys_addr_t size);
> >
> > Would it be possible to drop "early"? It's redundant and makes the
> > function names unnecessarily long. When memblock is enabled, these
> > are basically doing about the same thing as memblock_alloc() and
> > friends, right? Wouldn't it make more sense to define these as
> > memblock_alloc_XXX()?
> >
> A small a difference w.r.t existing memblock_alloc() vs these new
> exports returns virtual mapped memory pointers. Actually I started
> with memblock_alloc_xxx() but then memblock already exports memblock_alloc_xx()
> returning physical memory pointer. So just wanted to make these interfaces
> distinct and added "early". But I agree with you that the 'early' can
> be dropped. Will fix it.

Hmmm, so while this removes address limit on the base / limit side, it
keeps virt address on the result. In that case, we probably want to
somehow distinguish the two sets of interfaces - one set dealing with
phys and the other dealing with virts. Maybe we want to build the
base interface on phys address and add convenience wrappers for virts?
Would that make more sense?



 \ /
  Last update: 2013-10-14 17:21    [W:0.114 / U:4.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site