Commit 6e5af9a8 authored by Cao jin's avatar Cao jin Committed by Linus Torvalds

mm/memblock.c: cleanup doc

fix typos for:
    elaboarte -> elaborate
    architecure -> architecture
    compltes -> completes

And, convert the markup :c:func:`foo` to foo() as kernel documentation
toolchain can recognize foo() as a function.

Link: http://lkml.kernel.org/r/20190912123127.8694-1-caoj.fnst@cn.fujitsu.comSigned-off-by: default avatarCao jin <caoj.fnst@cn.fujitsu.com>
Suggested-by: default avatarMike Rapoport <rppt@linux.ibm.com>
Reviewed-by: default avatarMike Rapoport <rppt@linux.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f18da660
...@@ -57,42 +57,38 @@ ...@@ -57,42 +57,38 @@
* at build time. The region arrays for the "memory" and "reserved" * at build time. The region arrays for the "memory" and "reserved"
* types are initially sized to %INIT_MEMBLOCK_REGIONS and for the * types are initially sized to %INIT_MEMBLOCK_REGIONS and for the
* "physmap" type to %INIT_PHYSMEM_REGIONS. * "physmap" type to %INIT_PHYSMEM_REGIONS.
* The :c:func:`memblock_allow_resize` enables automatic resizing of * The memblock_allow_resize() enables automatic resizing of the region
* the region arrays during addition of new regions. This feature * arrays during addition of new regions. This feature should be used
* should be used with care so that memory allocated for the region * with care so that memory allocated for the region array will not
* array will not overlap with areas that should be reserved, for * overlap with areas that should be reserved, for example initrd.
* example initrd.
* *
* The early architecture setup should tell memblock what the physical * The early architecture setup should tell memblock what the physical
* memory layout is by using :c:func:`memblock_add` or * memory layout is by using memblock_add() or memblock_add_node()
* :c:func:`memblock_add_node` functions. The first function does not * functions. The first function does not assign the region to a NUMA
* assign the region to a NUMA node and it is appropriate for UMA * node and it is appropriate for UMA systems. Yet, it is possible to
* systems. Yet, it is possible to use it on NUMA systems as well and * use it on NUMA systems as well and assign the region to a NUMA node
* assign the region to a NUMA node later in the setup process using * later in the setup process using memblock_set_node(). The
* :c:func:`memblock_set_node`. The :c:func:`memblock_add_node` * memblock_add_node() performs such an assignment directly.
* performs such an assignment directly.
* *
* Once memblock is setup the memory can be allocated using one of the * Once memblock is setup the memory can be allocated using one of the
* API variants: * API variants:
* *
* * :c:func:`memblock_phys_alloc*` - these functions return the * * memblock_phys_alloc*() - these functions return the **physical**
* **physical** address of the allocated memory * address of the allocated memory
* * :c:func:`memblock_alloc*` - these functions return the **virtual** * * memblock_alloc*() - these functions return the **virtual** address
* address of the allocated memory. * of the allocated memory.
* *
* Note, that both API variants use implict assumptions about allowed * Note, that both API variants use implict assumptions about allowed
* memory ranges and the fallback methods. Consult the documentation * memory ranges and the fallback methods. Consult the documentation
* of :c:func:`memblock_alloc_internal` and * of memblock_alloc_internal() and memblock_alloc_range_nid()
* :c:func:`memblock_alloc_range_nid` functions for more elaboarte * functions for more elaborate description.
* description.
* *
* As the system boot progresses, the architecture specific * As the system boot progresses, the architecture specific mem_init()
* :c:func:`mem_init` function frees all the memory to the buddy page * function frees all the memory to the buddy page allocator.
* allocator.
* *
* Unless an architecure enables %CONFIG_ARCH_KEEP_MEMBLOCK, the * Unless an architecture enables %CONFIG_ARCH_KEEP_MEMBLOCK, the
* memblock data structures will be discarded after the system * memblock data structures will be discarded after the system
* initialization compltes. * initialization completes.
*/ */
#ifndef CONFIG_NEED_MULTIPLE_NODES #ifndef CONFIG_NEED_MULTIPLE_NODES
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment