Hi, On 06/18/2018 09:59 AM, Mike Rapoport wrote: > Signed-off-by: Mike Rapoport <rppt@xxxxxxxxxxxxxxxxxx> > --- > mm/bootmem.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 47 insertions(+) > > diff --git a/mm/bootmem.c b/mm/bootmem.c > index 76fc17e..423cb5f 100644 > --- a/mm/bootmem.c > +++ b/mm/bootmem.c > @@ -21,6 +21,53 @@ > > #include "internal.h" > > +/** > + * DOC: bootmem overview > + * > + * Bootmem is a boot-time physical memory allocator and configurator. > + * > + * It is used early in the boot process before the page allocator is > + * set up. > + * > + * The bootmem is based on the most basic of allocators, a First Fit * Bootmem is based on or * The bootmem allocator is based on > + * allocator which uses a bitmap to represent memory. If a bit is 1, > + * the page is allocated and 0 if unallocated. To satisfy allocations > + * of sizes smaller than a page, the allocator records the Page Frame > + * Number (PFN) of the last allocation and the offset the allocation > + * ended at. Subsequent small allocations are merged together and > + * stored on the same page. -- ~Randy