sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget)/translations/zh_CN/core-api/boot-time-mmmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/zh_TW/core-api/boot-time-mmmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/it_IT/core-api/boot-time-mmmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/ja_JP/core-api/boot-time-mmmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/ko_KR/core-api/boot-time-mmmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/sp_SP/core-api/boot-time-mmmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(hBoot time memory managementh]hBoot time memory management}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhC/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm.rsthKubh paragraph)}(hEarly system initialization cannot use "normal" memory management simply because it is not set up yet. But there is still need to allocate memory for various data structures, for instance for the physical page allocator.h]hEarly system initialization cannot use “normal” memory management simply because it is not set up yet. But there is still need to allocate memory for various data structures, for instance for the physical page allocator.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hA specialized allocator called ``memblock`` performs the boot time memory management. The architecture specific initialization must set it up in :c:func:`setup_arch` and tear it down in :c:func:`mem_init` functions.h](hA specialized allocator called }(hhhhhNhNubhliteral)}(h ``memblock``h]hmemblock}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhubhf performs the boot time memory management. The architecture specific initialization must set it up in }(hhhhhNhNubh)}(h:c:func:`setup_arch`h]h)}(hhh]h setup_arch()}(hhhhhNhNubah}(h]h ](xrefcc-funceh"]h$]h&]uh1hhhubah}(h]h ]h"]h$]h&]refdoccore-api/boot-time-mm refdomainhreftypefunc refexplicitrefwarn reftarget setup_archuh1hhhhK hhubh and tear it down in }(hhhhhNhNubh)}(h:c:func:`mem_init`h]h)}(hj h]h mem_init()}(hjhhhNhNubah}(h]h ](hhc-funceh"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]refdoch refdomainhreftypefunc refexplicitrefwarnjmem_inituh1hhhhK hhubh functions.}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hX=Once the early memory management is available it offers a variety of functions and macros for memory allocations. The allocation request may be directed to the first (and probably the only) node or to a particular node in a NUMA system. There are API variants that panic when an allocation fails and those that don't.h]hX?Once the early memory management is available it offers a variety of functions and macros for memory allocations. The allocation request may be directed to the first (and probably the only) node or to a particular node in a NUMA system. There are API variants that panic when an allocation fails and those that don’t.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hFMemblock also offers a variety of APIs that control its own behaviour.h]hFMemblock also offers a variety of APIs that control its own behaviour.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(hMemblock Overviewh]hMemblock Overview}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhhhhhKubh)}(hMemblock is a method of managing memory regions during the early boot period when the usual kernel memory allocators are not up and running.h]hMemblock is a method of managing memory regions during the early boot period when the usual kernel memory allocators are not up and running.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:26: ./mm/memblock.chK&hjOhhubh)}(htMemblock views the system memory as collections of contiguous regions. There are several types of these collections:h]htMemblock views the system memory as collections of contiguous regions. There are several types of these collections:}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:26: ./mm/memblock.chK*hjOhhubh bullet_list)}(hhh](h list_item)}(h``memory`` - describes the physical memory available to the kernel; this may differ from the actual physical memory installed in the system, for instance when the memory is restricted with ``mem=`` command line parameterh]h)}(h``memory`` - describes the physical memory available to the kernel; this may differ from the actual physical memory installed in the system, for instance when the memory is restricted with ``mem=`` command line parameterh](h)}(h ``memory``h]hmemory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh - describes the physical memory available to the kernel; this may differ from the actual physical memory installed in the system, for instance when the memory is restricted with }(hjhhhNhNubh)}(h``mem=``h]hmem=}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh command line parameter}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:26: ./mm/memblock.chK-hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h8``reserved`` - describes the regions that were allocatedh]h)}(hjh](h)}(h ``reserved``h]hreserved}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh, - describes the regions that were allocated}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:26: ./mm/memblock.chK1hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h``physmem`` - describes the actual physical memory available during boot regardless of the possible restrictions and memory hot(un)plug; the ``physmem`` type is only available on some architectures. h]h)}(h``physmem`` - describes the actual physical memory available during boot regardless of the possible restrictions and memory hot(un)plug; the ``physmem`` type is only available on some architectures.h](h)}(h ``physmem``h]hphysmem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh - describes the actual physical memory available during boot regardless of the possible restrictions and memory hot(un)plug; the }(hjhhhNhNubh)}(h ``physmem``h]hphysmem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh. type is only available on some architectures.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:26: ./mm/memblock.chK2hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]bullet*uh1j~hjhK-hjOhhubh)}(hXwEach region is represented by struct memblock_region that defines the region extents, its attributes and NUMA node id on NUMA systems. Every memory type is described by the struct memblock_type which contains an array of memory regions along with the allocator metadata. The "memory" and "reserved" types are nicely wrapped with struct memblock. This structure is statically initialized at build time. The region arrays are initially sized to ``INIT_MEMBLOCK_MEMORY_REGIONS`` for "memory" and ``INIT_MEMBLOCK_RESERVED_REGIONS`` for "reserved". The region array for "physmem" is initially sized to ``INIT_PHYSMEM_REGIONS``. The memblock_allow_resize() enables automatic resizing of the region arrays during addition of new regions. This feature should be used with care so that memory allocated for the region array will not overlap with areas that should be reserved, for example initrd.h](hXEach region is represented by struct memblock_region that defines the region extents, its attributes and NUMA node id on NUMA systems. Every memory type is described by the struct memblock_type which contains an array of memory regions along with the allocator metadata. The “memory” and “reserved” types are nicely wrapped with struct memblock. This structure is statically initialized at build time. The region arrays are initially sized to }(hj%hhhNhNubh)}(h ``INIT_MEMBLOCK_MEMORY_REGIONS``h]hINIT_MEMBLOCK_MEMORY_REGIONS}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%ubh for “memory” and }(hj%hhhNhNubh)}(h"``INIT_MEMBLOCK_RESERVED_REGIONS``h]hINIT_MEMBLOCK_RESERVED_REGIONS}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%ubhN for “reserved”. The region array for “physmem” is initially sized to }(hj%hhhNhNubh)}(h``INIT_PHYSMEM_REGIONS``h]hINIT_PHYSMEM_REGIONS}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%ubhX . The memblock_allow_resize() enables automatic resizing of the region arrays during addition of new regions. This feature should be used with care so that memory allocated for the region array will not overlap with areas that should be reserved, for example initrd.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:26: ./mm/memblock.chK6hjOhhubh)}(hXThe early architecture setup should tell memblock what the physical memory layout is by using memblock_add() or memblock_add_node() functions. The first function does not assign the region to a NUMA node and it is appropriate for UMA systems. Yet, it is possible to use it on NUMA systems as well and assign the region to a NUMA node later in the setup process using memblock_set_node(). The memblock_add_node() performs such an assignment directly.h]hXThe early architecture setup should tell memblock what the physical memory layout is by using memblock_add() or memblock_add_node() functions. The first function does not assign the region to a NUMA node and it is appropriate for UMA systems. Yet, it is possible to use it on NUMA systems as well and assign the region to a NUMA node later in the setup process using memblock_set_node(). The memblock_add_node() performs such an assignment directly.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:26: ./mm/memblock.chKEhjOhhubh)}(hQOnce memblock is setup the memory can be allocated using one of the API variants:h]hQOnce memblock is setup the memory can be allocated using one of the API variants:}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:26: ./mm/memblock.chKMhjOhhubj)}(hhh](j)}(h`memblock_phys_alloc*() - these functions return the **physical** address of the allocated memoryh]h)}(h`memblock_phys_alloc*() - these functions return the **physical** address of the allocated memoryh](h4memblock_phys_alloc*() - these functions return the }(hjhhhNhNubhstrong)}(h **physical**h]hphysical}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh address of the allocated memory}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:26: ./mm/memblock.chKPhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h\memblock_alloc*() - these functions return the **virtual** address of the allocated memory. h]h)}(h[memblock_alloc*() - these functions return the **virtual** address of the allocated memory.h](h/memblock_alloc*() - these functions return the }(hjhhhNhNubj)}(h **virtual**h]hvirtual}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh! address of the allocated memory.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:26: ./mm/memblock.chKRhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]j#j$uh1j~hjhKPhjOhhubh)}(hNote, that both API variants use implicit assumptions about allowed memory ranges and the fallback methods. Consult the documentation of memblock_alloc_internal() and memblock_alloc_range_nid() functions for more elaborate description.h]hNote, that both API variants use implicit assumptions about allowed memory ranges and the fallback methods. Consult the documentation of memblock_alloc_internal() and memblock_alloc_range_nid() functions for more elaborate description.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:26: ./mm/memblock.chKUhjOhhubh)}(h~As the system boot progresses, the architecture specific mem_init() function frees all the memory to the buddy page allocator.h]h~As the system boot progresses, the architecture specific mem_init() function frees all the memory to the buddy page allocator.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:26: ./mm/memblock.chKZhjOhhubh)}(hUnless an architecture enables ``CONFIG_ARCH_KEEP_MEMBLOCK``, the memblock data structures (except "physmem") will be discarded after the system initialization completes.h](hUnless an architecture enables }(hjhhhNhNubh)}(h``CONFIG_ARCH_KEEP_MEMBLOCK``h]hCONFIG_ARCH_KEEP_MEMBLOCK}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubhr, the memblock data structures (except “physmem”) will be discarded after the system initialization completes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:26: ./mm/memblock.chK]hjOhhubeh}(h]memblock-overviewah ]h"]memblock overviewah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hFunctions and structuresh]hFunctions and structures}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hhhhhKubh)}(hX$Here is the description of memblock data structures, functions and macros. Some of them are actually internal, but since they are documented it would be silly to omit them. Besides, reading the descriptions for the internal functions can help to understand what really happens under the hood.h]hX$Here is the description of memblock data structures, functions and macros. Some of them are actually internal, but since they are documented it would be silly to omit them. Besides, reading the descriptions for the internal functions can help to understand what really happens under the hood.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK!hj0hhubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlememblock_flags (C enum)c.memblock_flagshNtauh1jOhj0hhhNhNubhdesc)}(hhh](hdesc_signature)}(hmemblock_flagsh]hdesc_signature_line)}(henum memblock_flagsh](hdesc_sig_keyword)}(henumh]henum}(hjshhhNhNubah}(h]h ]kah"]h$]h&]uh1jqhjmhhh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKubhdesc_sig_space)}(h h]h }(hjhhhNhNubah}(h]h ]wah"]h$]h&]uh1jhjmhhhjhKubh desc_name)}(hmemblock_flagsh]h desc_sig_name)}(hjih]hmemblock_flags}(hjhhhNhNubah}(h]h ]nah"]h$]h&]uh1jhjubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1jhjmhhhjhKubeh}(h]h ]h"]h$]h&]jj add_permalinkuh1jksphinx_line_type declaratorhjghhhjhKubah}(h]j^ah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1jehjhKhjbhhubh desc_content)}(hhh]h)}(h&definition of memory region attributesh]h&definition of memory region attributes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjbhhhjhKubeh}(h]h ](henumeh"]h$]h&]domainhobjtypejdesctypejnoindex noindexentrynocontentsentryuh1j`hhhj0hNhNubh container)}(hX**Constants** ``MEMBLOCK_NONE`` no special request ``MEMBLOCK_HOTPLUG`` memory region indicated in the firmware-provided memory map during early boot as hot(un)pluggable system RAM (e.g., memory range that might get hotunplugged later). With "movable_node" set on the kernel commandline, try keeping this memory region hotunpluggable. Does not apply to memblocks added ("hotplugged") after early boot. ``MEMBLOCK_MIRROR`` mirrored region ``MEMBLOCK_NOMAP`` don't add to kernel direct mapping and treat as reserved in the memory map; refer to memblock_mark_nomap() description for further details ``MEMBLOCK_DRIVER_MANAGED`` memory region that is always detected and added via a driver, and never indicated in the firmware-provided memory map as system RAM. This corresponds to IORESOURCE_SYSRAM_DRIVER_MANAGED in the kernel resource tree. ``MEMBLOCK_RSRV_NOINIT`` memory region for which struct pages are not initialized (only for reserved regions).h](h)}(h **Constants**h]j)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhK hjubhdefinition_list)}(hhh](hdefinition_list_item)}(h%``MEMBLOCK_NONE`` no special request h](hterm)}(h``MEMBLOCK_NONE``h]h)}(hjh]h MEMBLOCK_NONE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhK#hjubh definition)}(hhh]h)}(hno special requesth]hno special request}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hK#hj4ubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhj1hK#hjubj)}(hX_``MEMBLOCK_HOTPLUG`` memory region indicated in the firmware-provided memory map during early boot as hot(un)pluggable system RAM (e.g., memory range that might get hotunplugged later). With "movable_node" set on the kernel commandline, try keeping this memory region hotunpluggable. Does not apply to memblocks added ("hotplugged") after early boot. h](j)}(h``MEMBLOCK_HOTPLUG``h]h)}(hjWh]hMEMBLOCK_HOTPLUG}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhK*hjQubj3)}(hhh]h)}(hXImemory region indicated in the firmware-provided memory map during early boot as hot(un)pluggable system RAM (e.g., memory range that might get hotunplugged later). With "movable_node" set on the kernel commandline, try keeping this memory region hotunpluggable. Does not apply to memblocks added ("hotplugged") after early boot.h]hXQmemory region indicated in the firmware-provided memory map during early boot as hot(un)pluggable system RAM (e.g., memory range that might get hotunplugged later). With “movable_node” set on the kernel commandline, try keeping this memory region hotunpluggable. Does not apply to memblocks added (“hotplugged”) after early boot.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhK&hjmubah}(h]h ]h"]h$]h&]uh1j2hjQubeh}(h]h ]h"]h$]h&]uh1jhjlhK*hjubj)}(h$``MEMBLOCK_MIRROR`` mirrored region h](j)}(h``MEMBLOCK_MIRROR``h]h)}(hjh]hMEMBLOCK_MIRROR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhK-hjubj3)}(hhh]h)}(hmirrored regionh]hmirrored region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK-hjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhK-hjubj)}(h``MEMBLOCK_NOMAP`` don't add to kernel direct mapping and treat as reserved in the memory map; refer to memblock_mark_nomap() description for further details h](j)}(h``MEMBLOCK_NOMAP``h]h)}(hjh]hMEMBLOCK_NOMAP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhK2hjubj3)}(hhh]h)}(hdon't add to kernel direct mapping and treat as reserved in the memory map; refer to memblock_mark_nomap() description for further detailsh]hdon’t add to kernel direct mapping and treat as reserved in the memory map; refer to memblock_mark_nomap() description for further details}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhK0hjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhK2hjubj)}(h``MEMBLOCK_DRIVER_MANAGED`` memory region that is always detected and added via a driver, and never indicated in the firmware-provided memory map as system RAM. This corresponds to IORESOURCE_SYSRAM_DRIVER_MANAGED in the kernel resource tree. h](j)}(h``MEMBLOCK_DRIVER_MANAGED``h]h)}(hjh]hMEMBLOCK_DRIVER_MANAGED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhK8hjubj3)}(hhh]h)}(hmemory region that is always detected and added via a driver, and never indicated in the firmware-provided memory map as system RAM. This corresponds to IORESOURCE_SYSRAM_DRIVER_MANAGED in the kernel resource tree.h]hmemory region that is always detected and added via a driver, and never indicated in the firmware-provided memory map as system RAM. This corresponds to IORESOURCE_SYSRAM_DRIVER_MANAGED in the kernel resource tree.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhK5hjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhK8hjubj)}(hn``MEMBLOCK_RSRV_NOINIT`` memory region for which struct pages are not initialized (only for reserved regions).h](j)}(h``MEMBLOCK_RSRV_NOINIT``h]h)}(hj>h]hMEMBLOCK_RSRV_NOINIT}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhK;hj8ubj3)}(hhh]h)}(hUmemory region for which struct pages are not initialized (only for reserved regions).h]hUmemory region for which struct pages are not initialized (only for reserved regions).}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShK;hjTubah}(h]h ]h"]h$]h&]uh1j2hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShK;hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\memblock_region (C struct)c.memblock_regionhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hmemblock_regionh]jl)}(hstruct memblock_regionh](jr)}(hstructh]hstruct}(hjhhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhjhhh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKBubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKBubj)}(hmemblock_regionh]j)}(hjh]hmemblock_region}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhKBubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjhhhjhKBubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jehjhKBhjhhubj)}(hhh]h)}(hrepresents a memory regionh]hrepresents a memory region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhK8hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKBubeh}(h]h ](hstructeh"]h$]h&]jhjjjjjjjuh1j`hhhj0hNhNubj)}(hXB**Definition**:: struct memblock_region { phys_addr_t base; phys_addr_t size; enum memblock_flags flags; #ifdef CONFIG_NUMA; int nid; #endif; }; **Members** ``base`` base address of the region ``size`` size of the region ``flags`` memory region attributes ``nid`` NUMA node idh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhjubh)}(h **Members**h]j)}(hj*h]hMembers}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKGhjubj)}(hhh](j)}(h$``base`` base address of the region h](j)}(h``base``h]h)}(hjIh]hbase}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhK:hjCubj3)}(hhh]h)}(hbase address of the regionh]hbase address of the region}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hK:hj_ubah}(h]h ]h"]h$]h&]uh1j2hjCubeh}(h]h ]h"]h$]h&]uh1jhj^hK:hj@ubj)}(h``size`` size of the region h](j)}(h``size``h]h)}(hjh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhK;hj|ubj3)}(hhh]h)}(hsize of the regionh]hsize of the region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK;hjubah}(h]h ]h"]h$]h&]uh1j2hj|ubeh}(h]h ]h"]h$]h&]uh1jhjhK;hj@ubj)}(h#``flags`` memory region attributes h](j)}(h ``flags``h]h)}(hjh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKh]h&for_each_mem_range (i, p_start, p_end)}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhj0hhubj< )}(hiterate through memory areas. h]h)}(hiterate through memory areas.h]hiterate through memory areas.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhjTubah}(h]h ]h"]h$]h&]uh1j; hjfhKhj0hhubj)}(h**Parameters** ``i`` u64 used as loop variable ``p_start`` ptr to phys_addr_t for start address of the range, can be ``NULL`` ``p_end`` ptr to phys_addr_t for end address of the range, can be ``NULL``h](h)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhjmubj)}(hhh](j)}(h ``i`` u64 used as loop variable h](j)}(h``i``h]h)}(hjh]hi}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhjubj3)}(hhh]h)}(hu64 used as loop variableh]hu64 used as loop variable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hO``p_start`` ptr to phys_addr_t for start address of the range, can be ``NULL`` h](j)}(h ``p_start``h]h)}(hjh]hp_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhjubj3)}(hhh]h)}(hBptr to phys_addr_t for start address of the range, can be ``NULL``h](h:ptr to phys_addr_t for start address of the range, can be }(hjhhhNhNubh)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hJ``p_end`` ptr to phys_addr_t for end address of the range, can be ``NULL``h](j)}(h ``p_end``h]h)}(hjh]hp_end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhj ubj3)}(hhh]h)}(h@ptr to phys_addr_t for end address of the range, can be ``NULL``h](h8ptr to phys_addr_t for end address of the range, can be }(hj+hhhNhNubh)}(h``NULL``h]hNULL}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+ubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhj(ubah}(h]h ]h"]h$]h&]uh1j2hj ubeh}(h]h ]h"]h$]h&]uh1jhj'hKhjubeh}(h]h ]h"]h$]h&]uh1j hjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\ for_each_mem_range_rev (C macro)c.for_each_mem_range_revhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hfor_each_mem_range_revh]jl)}(hfor_each_mem_range_revh]j)}(hfor_each_mem_range_revh]j)}(hjth]hfor_each_mem_range_rev}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jhjvhhh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKubah}(h]h ]h"]h$]h&]jjjuh1jkjjhjrhhhjhKubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1jehjhKhjohhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjohhhjhKubeh}(h]h ](hmacroeh"]h$]h&]jhjjjjjjjuh1j`hhhj0hNhNubh)}(h.``for_each_mem_range_rev (i, p_start, p_end)``h]h)}(hjh]h*for_each_mem_range_rev (i, p_start, p_end)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhj0hhubj< )}(hqreverse iterate through memblock areas from type_a and not included in type_b. Or just type_a if type_b is NULL. h]h)}(hpreverse iterate through memblock areas from type_a and not included in type_b. Or just type_a if type_b is NULL.h]hpreverse iterate through memblock areas from type_a and not included in type_b. Or just type_a if type_b is NULL.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhjubah}(h]h ]h"]h$]h&]uh1j; hjhKhj0hhubj)}(h**Parameters** ``i`` u64 used as loop variable ``p_start`` ptr to phys_addr_t for start address of the range, can be ``NULL`` ``p_end`` ptr to phys_addr_t for end address of the range, can be ``NULL``h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhjubj)}(hhh](j)}(h ``i`` u64 used as loop variable h](j)}(h``i``h]h)}(hjh]hi}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhjubj3)}(hhh]h)}(hu64 used as loop variableh]hu64 used as loop variable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hO``p_start`` ptr to phys_addr_t for start address of the range, can be ``NULL`` h](j)}(h ``p_start``h]h)}(hj=h]hp_start}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhj7ubj3)}(hhh]h)}(hBptr to phys_addr_t for start address of the range, can be ``NULL``h](h:ptr to phys_addr_t for start address of the range, can be }(hjVhhhNhNubh)}(h``NULL``h]hNULL}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVubeh}(h]h ]h"]h$]h&]uh1hhjRhKhjSubah}(h]h ]h"]h$]h&]uh1j2hj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhKhjubj)}(hJ``p_end`` ptr to phys_addr_t for end address of the range, can be ``NULL``h](j)}(h ``p_end``h]h)}(hjh]hp_end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhj~ubj3)}(hhh]h)}(h@ptr to phys_addr_t for end address of the range, can be ``NULL``h](h8ptr to phys_addr_t for end address of the range, can be }(hjhhhNhNubh)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhjubah}(h]h ]h"]h$]h&]uh1j2hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\%for_each_reserved_mem_range (C macro)c.for_each_reserved_mem_rangehNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hfor_each_reserved_mem_rangeh]jl)}(hfor_each_reserved_mem_rangeh]j)}(hfor_each_reserved_mem_rangeh]j)}(hjh]hfor_each_reserved_mem_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKubah}(h]h ]h"]h$]h&]jjjuh1jkjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jehjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](hmacroeh"]h$]h&]jhjjjjjjjuh1j`hhhj0hNhNubh)}(h3``for_each_reserved_mem_range (i, p_start, p_end)``h]h)}(hj"h]h/for_each_reserved_mem_range (i, p_start, p_end)}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhj0hhubj< )}(h)iterate over all reserved memblock areas h]h)}(h(iterate over all reserved memblock areash]h(iterate over all reserved memblock areas}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhj8ubah}(h]h ]h"]h$]h&]uh1j; hjJhKhj0hhubj)}(hX8**Parameters** ``i`` u64 used as loop variable ``p_start`` ptr to phys_addr_t for start address of the range, can be ``NULL`` ``p_end`` ptr to phys_addr_t for end address of the range, can be ``NULL`` **Description** Walks over reserved areas of memblock. Available as soon as memblock is initialized.h](h)}(h**Parameters**h]j)}(hjWh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhjQubj)}(hhh](j)}(h ``i`` u64 used as loop variable h](j)}(h``i``h]h)}(hjvh]hi}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjtubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhjpubj3)}(hhh]h)}(hu64 used as loop variableh]hu64 used as loop variable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j2hjpubeh}(h]h ]h"]h$]h&]uh1jhjhKhjmubj)}(hO``p_start`` ptr to phys_addr_t for start address of the range, can be ``NULL`` h](j)}(h ``p_start``h]h)}(hjh]hp_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhjubj3)}(hhh]h)}(hBptr to phys_addr_t for start address of the range, can be ``NULL``h](h:ptr to phys_addr_t for start address of the range, can be }(hjhhhNhNubh)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjmubj)}(hK``p_end`` ptr to phys_addr_t for end address of the range, can be ``NULL`` h](j)}(h ``p_end``h]h)}(hjh]hp_end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhjubj3)}(hhh]h)}(h@ptr to phys_addr_t for end address of the range, can be ``NULL``h](h8ptr to phys_addr_t for end address of the range, can be }(hjhhhNhNubh)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjmubeh}(h]h ]h"]h$]h&]uh1j hjQubh)}(h**Description**h]j)}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhjQubh)}(hTWalks over reserved areas of memblock. Available as soon as memblock is initialized.h]hTWalks over reserved areas of memblock. Available as soon as memblock is initialized.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhKhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\ for_each_mem_pfn_range (C macro)c.for_each_mem_pfn_rangehNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hfor_each_mem_pfn_rangeh]jl)}(hfor_each_mem_pfn_rangeh]j)}(hfor_each_mem_pfn_rangeh]j)}(hj~h]hfor_each_mem_pfn_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM%ubah}(h]h ]h"]h$]h&]jjjuh1jkjjhj|hhhjhM%ubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1jehjhM%hjyhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjyhhhjhM%ubeh}(h]h ](hmacroeh"]h$]h&]jhjjjjjjjuh1j`hhhj0hNhNubh)}(h:``for_each_mem_pfn_range (i, nid, p_start, p_end, p_nid)``h]h)}(hjh]h6for_each_mem_pfn_range (i, nid, p_start, p_end, p_nid)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM'hj0hhubj< )}(h early memory pfn range iterator h]h)}(hearly memory pfn range iteratorh]hearly memory pfn range iterator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhjubah}(h]h ]h"]h$]h&]uh1j; hjhMhj0hhubj)}(hXr**Parameters** ``i`` an integer used as loop variable ``nid`` node selector, ``MAX_NUMNODES`` for all nodes ``p_start`` ptr to ulong for start pfn of the range, can be ``NULL`` ``p_end`` ptr to ulong for end pfn of the range, can be ``NULL`` ``p_nid`` ptr to int for nid of the range, can be ``NULL`` **Description** Walks over configured memory ranges.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM hjubj)}(hhh](j)}(h'``i`` an integer used as loop variable h](j)}(h``i``h]h)}(hjh]hi}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhjubj3)}(hhh]h)}(h an integer used as loop variableh]h an integer used as loop variable}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjubj)}(h6``nid`` node selector, ``MAX_NUMNODES`` for all nodes h](j)}(h``nid``h]h)}(hjGh]hnid}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhjAubj3)}(hhh]h)}(h-node selector, ``MAX_NUMNODES`` for all nodesh](hnode selector, }(hj`hhhNhNubh)}(h``MAX_NUMNODES``h]h MAX_NUMNODES}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`ubh for all nodes}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1j2hjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhjubj)}(hE``p_start`` ptr to ulong for start pfn of the range, can be ``NULL`` h](j)}(h ``p_start``h]h)}(hjh]hp_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhjubj3)}(hhh]h)}(h8ptr to ulong for start pfn of the range, can be ``NULL``h](h0ptr to ulong for start pfn of the range, can be }(hjhhhNhNubh)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hA``p_end`` ptr to ulong for end pfn of the range, can be ``NULL`` h](j)}(h ``p_end``h]h)}(hjh]hp_end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM hjubj3)}(hhh]h)}(h6ptr to ulong for end pfn of the range, can be ``NULL``h](h.ptr to ulong for end pfn of the range, can be }(hjhhhNhNubh)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h;``p_nid`` ptr to int for nid of the range, can be ``NULL`` h](j)}(h ``p_nid``h]h)}(hj h]hp_nid}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM!hjubj3)}(hhh]h)}(h0ptr to int for nid of the range, can be ``NULL``h](h(ptr to int for nid of the range, can be }(hj9hhhNhNubh)}(h``NULL``h]hNULL}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9ubeh}(h]h ]h"]h$]h&]uh1hhj5hM!hj6ubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhj5hM!hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM#hjubh)}(h$Walks over configured memory ranges.h]h$Walks over configured memory ranges.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM#hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\2for_each_free_mem_pfn_range_in_zone_from (C macro)*c.for_each_free_mem_pfn_range_in_zone_fromhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(h(for_each_free_mem_pfn_range_in_zone_fromh]jl)}(h(for_each_free_mem_pfn_range_in_zone_fromh]j)}(h(for_each_free_mem_pfn_range_in_zone_fromh]j)}(hjh]h(for_each_free_mem_pfn_range_in_zone_from}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM:ubah}(h]h ]h"]h$]h&]jjjuh1jkjjhjhhhjhM:ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jehjhM:hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM:ubeh}(h]h ](hmacroeh"]h$]h&]jhjjjjjjjuh1j`hhhj0hNhNubh)}(hF``for_each_free_mem_pfn_range_in_zone_from (i, zone, p_start, p_end)``h]h)}(hjh]hBfor_each_free_mem_pfn_range_in_zone_from (i, zone, p_start, p_end)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM<hj0hhubj< )}(hEiterate through zone specific free memblock areas from a given point h]h)}(hDiterate through zone specific free memblock areas from a given pointh]hDiterate through zone specific free memblock areas from a given point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM/hjubah}(h]h ]h"]h$]h&]uh1j; hj hM/hj0hhubj)}(hX**Parameters** ``i`` u64 used as loop variable ``zone`` zone in which all of the memory blocks reside ``p_start`` ptr to phys_addr_t for start address of the range, can be ``NULL`` ``p_end`` ptr to phys_addr_t for end address of the range, can be ``NULL`` **Description** Walks over free (memory && !reserved) areas of memblock in a specific zone, continuing from current position. Available as soon as memblock is initialized.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM3hjubj)}(hhh](j)}(h ``i`` u64 used as loop variable h](j)}(h``i``h]h)}(hj8h]hi}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM1hj2ubj3)}(hhh]h)}(hu64 used as loop variableh]hu64 used as loop variable}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhM1hjNubah}(h]h ]h"]h$]h&]uh1j2hj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhM1hj/ubj)}(h7``zone`` zone in which all of the memory blocks reside h](j)}(h``zone``h]h)}(hjqh]hzone}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjoubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM2hjkubj3)}(hhh]h)}(h-zone in which all of the memory blocks resideh]h-zone in which all of the memory blocks reside}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM2hjubah}(h]h ]h"]h$]h&]uh1j2hjkubeh}(h]h ]h"]h$]h&]uh1jhjhM2hj/ubj)}(hO``p_start`` ptr to phys_addr_t for start address of the range, can be ``NULL`` h](j)}(h ``p_start``h]h)}(hjh]hp_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM3hjubj3)}(hhh]h)}(hBptr to phys_addr_t for start address of the range, can be ``NULL``h](h:ptr to phys_addr_t for start address of the range, can be }(hjhhhNhNubh)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjhM3hjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhM3hj/ubj)}(hK``p_end`` ptr to phys_addr_t for end address of the range, can be ``NULL`` h](j)}(h ``p_end``h]h)}(hjh]hp_end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM4hjubj3)}(hhh]h)}(h@ptr to phys_addr_t for end address of the range, can be ``NULL``h](h8ptr to phys_addr_t for end address of the range, can be }(hj hhhNhNubh)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]uh1hhjhM4hjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhM4hj/ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj:h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM6hjubh)}(hWalks over free (memory && !reserved) areas of memblock in a specific zone, continuing from current position. Available as soon as memblock is initialized.h]hWalks over free (memory && !reserved) areas of memblock in a specific zone, continuing from current position. Available as soon as memblock is initialized.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\!for_each_free_mem_range (C macro)c.for_each_free_mem_rangehNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hfor_each_free_mem_rangeh]jl)}(hfor_each_free_mem_rangeh]j)}(hfor_each_free_mem_rangeh]j)}(hjyh]hfor_each_free_mem_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj{hhh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMLubah}(h]h ]h"]h$]h&]jjjuh1jkjjhjwhhhjhMLubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1jehjhMLhjthhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjthhhjhMLubeh}(h]h ](hmacroeh"]h$]h&]jhjjjjjjjuh1j`hhhj0hNhNubh)}(hB``for_each_free_mem_range (i, nid, flags, p_start, p_end, p_nid)``h]h)}(hjh]h>for_each_free_mem_range (i, nid, flags, p_start, p_end, p_nid)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMNhj0hhubj< )}(h$iterate through free memblock areas h]h)}(h#iterate through free memblock areash]h#iterate through free memblock areas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMAhjubah}(h]h ]h"]h$]h&]uh1j; hjhMAhj0hhubj)}(hX**Parameters** ``i`` u64 used as loop variable ``nid`` node selector, ``NUMA_NO_NODE`` for all nodes ``flags`` pick from blocks based on memory attributes ``p_start`` ptr to phys_addr_t for start address of the range, can be ``NULL`` ``p_end`` ptr to phys_addr_t for end address of the range, can be ``NULL`` ``p_nid`` ptr to int for nid of the range, can be ``NULL`` **Description** Walks over free (memory && !reserved) areas of memblock. Available as soon as memblock is initialized.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMEhjubj)}(hhh](j)}(h ``i`` u64 used as loop variable h](j)}(h``i``h]h)}(hj h]hi}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMBhjubj3)}(hhh]h)}(hu64 used as loop variableh]hu64 used as loop variable}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMBhjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhMBhjubj)}(h6``nid`` node selector, ``NUMA_NO_NODE`` for all nodes h](j)}(h``nid``h]h)}(hjBh]hnid}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMChj<ubj3)}(hhh]h)}(h-node selector, ``NUMA_NO_NODE`` for all nodesh](hnode selector, }(hj[hhhNhNubh)}(h``NUMA_NO_NODE``h]h NUMA_NO_NODE}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[ubh for all nodes}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjWhMChjXubah}(h]h ]h"]h$]h&]uh1j2hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMChjubj)}(h6``flags`` pick from blocks based on memory attributes h](j)}(h ``flags``h]h)}(hjh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMDhjubj3)}(hhh]h)}(h+pick from blocks based on memory attributesh]h+pick from blocks based on memory attributes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMDhjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjubj)}(hO``p_start`` ptr to phys_addr_t for start address of the range, can be ``NULL`` h](j)}(h ``p_start``h]h)}(hjh]hp_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMEhjubj3)}(hhh]h)}(hBptr to phys_addr_t for start address of the range, can be ``NULL``h](h:ptr to phys_addr_t for start address of the range, can be }(hjhhhNhNubh)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjhMEhjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhMEhjubj)}(hK``p_end`` ptr to phys_addr_t for end address of the range, can be ``NULL`` h](j)}(h ``p_end``h]h)}(hj h]hp_end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMFhjubj3)}(hhh]h)}(h@ptr to phys_addr_t for end address of the range, can be ``NULL``h](h8ptr to phys_addr_t for end address of the range, can be }(hj&hhhNhNubh)}(h``NULL``h]hNULL}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&ubeh}(h]h ]h"]h$]h&]uh1hhj"hMFhj#ubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhj"hMFhjubj)}(h;``p_nid`` ptr to int for nid of the range, can be ``NULL`` h](j)}(h ``p_nid``h]h)}(hjTh]hp_nid}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMGhjNubj3)}(hhh]h)}(h0ptr to int for nid of the range, can be ``NULL``h](h(ptr to int for nid of the range, can be }(hjmhhhNhNubh)}(h``NULL``h]hNULL}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmubeh}(h]h ]h"]h$]h&]uh1hhjihMGhjjubah}(h]h ]h"]h$]h&]uh1j2hjNubeh}(h]h ]h"]h$]h&]uh1jhjihMGhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMIhjubh)}(hgWalks over free (memory && !reserved) areas of memblock. Available as soon as memblock is initialized.h]hgWalks over free (memory && !reserved) areas of memblock. Available as soon as memblock is initialized.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMIhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\)for_each_free_mem_range_reverse (C macro)!c.for_each_free_mem_range_reversehNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hfor_each_free_mem_range_reverseh]jl)}(hfor_each_free_mem_range_reverseh]j)}(hfor_each_free_mem_range_reverseh]j)}(hjh]hfor_each_free_mem_range_reverse}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM\ubah}(h]h ]h"]h$]h&]jjjuh1jkjjhjhhhjhM\ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jehjhM\hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM\ubeh}(h]h ](hmacroeh"]h$]h&]jhjjjjjjjuh1j`hhhj0hNhNubh)}(hJ``for_each_free_mem_range_reverse (i, nid, flags, p_start, p_end, p_nid)``h]h)}(hjh]hFfor_each_free_mem_range_reverse (i, nid, flags, p_start, p_end, p_nid)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM^hj0hhubj< )}(h(rev-iterate through free memblock areas h]h)}(h'rev-iterate through free memblock areash]h'rev-iterate through free memblock areas}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMQhj.ubah}(h]h ]h"]h$]h&]uh1j; hj@hMQhj0hhubj)}(hX **Parameters** ``i`` u64 used as loop variable ``nid`` node selector, ``NUMA_NO_NODE`` for all nodes ``flags`` pick from blocks based on memory attributes ``p_start`` ptr to phys_addr_t for start address of the range, can be ``NULL`` ``p_end`` ptr to phys_addr_t for end address of the range, can be ``NULL`` ``p_nid`` ptr to int for nid of the range, can be ``NULL`` **Description** Walks over free (memory && !reserved) areas of memblock in reverse order. Available as soon as memblock is initialized.h](h)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMUhjGubj)}(hhh](j)}(h ``i`` u64 used as loop variable h](j)}(h``i``h]h)}(hjlh]hi}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMRhjfubj3)}(hhh]h)}(hu64 used as loop variableh]hu64 used as loop variable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMRhjubah}(h]h ]h"]h$]h&]uh1j2hjfubeh}(h]h ]h"]h$]h&]uh1jhjhMRhjcubj)}(h6``nid`` node selector, ``NUMA_NO_NODE`` for all nodes h](j)}(h``nid``h]h)}(hjh]hnid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMShjubj3)}(hhh]h)}(h-node selector, ``NUMA_NO_NODE`` for all nodesh](hnode selector, }(hjhhhNhNubh)}(h``NUMA_NO_NODE``h]h NUMA_NO_NODE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh for all nodes}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMShjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjcubj)}(h6``flags`` pick from blocks based on memory attributes h](j)}(h ``flags``h]h)}(hjh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMThjubj3)}(hhh]h)}(h+pick from blocks based on memory attributesh]h+pick from blocks based on memory attributes}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMThjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhMThjcubj)}(hO``p_start`` ptr to phys_addr_t for start address of the range, can be ``NULL`` h](j)}(h ``p_start``h]h)}(hj)h]hp_start}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMUhj#ubj3)}(hhh]h)}(hBptr to phys_addr_t for start address of the range, can be ``NULL``h](h:ptr to phys_addr_t for start address of the range, can be }(hjBhhhNhNubh)}(h``NULL``h]hNULL}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBubeh}(h]h ]h"]h$]h&]uh1hhj>hMUhj?ubah}(h]h ]h"]h$]h&]uh1j2hj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMUhjcubj)}(hK``p_end`` ptr to phys_addr_t for end address of the range, can be ``NULL`` h](j)}(h ``p_end``h]h)}(hjph]hp_end}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMVhjjubj3)}(hhh]h)}(h@ptr to phys_addr_t for end address of the range, can be ``NULL``h](h8ptr to phys_addr_t for end address of the range, can be }(hjhhhNhNubh)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjhMVhjubah}(h]h ]h"]h$]h&]uh1j2hjjubeh}(h]h ]h"]h$]h&]uh1jhjhMVhjcubj)}(h;``p_nid`` ptr to int for nid of the range, can be ``NULL`` h](j)}(h ``p_nid``h]h)}(hjh]hp_nid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMWhjubj3)}(hhh]h)}(h0ptr to int for nid of the range, can be ``NULL``h](h(ptr to int for nid of the range, can be }(hjhhhNhNubh)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]uh1hhjhMWhjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjcubeh}(h]h ]h"]h$]h&]uh1j hjGubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMYhjGubh)}(hxWalks over free (memory && !reserved) areas of memblock in reverse order. Available as soon as memblock is initialized.h]hxWalks over free (memory && !reserved) areas of memblock in reverse order. Available as soon as memblock is initialized.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMYhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\'memblock_set_current_limit (C function)c.memblock_set_current_limithNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(h3void memblock_set_current_limit (phys_addr_t limit)h]jl)}(h2void memblock_set_current_limit(phys_addr_t limit)h](hdesc_sig_keyword_type)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]ktah"]h$]h&]uh1jEhjAhhh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhjVhMubj)}(hmemblock_set_current_limith]j)}(hmemblock_set_current_limith]hmemblock_set_current_limit}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jhjAhhhjVhMubhdesc_parameterlist)}(h(phys_addr_t limit)h]hdesc_parameter)}(hphys_addr_t limith](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftype identifier reftargetjmodnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]j ASTIdentifier)}jjksbc.memblock_set_current_limitasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlimith]hlimit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1j}hjAhhhjVhMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhj=hhhjVhMubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1jehjVhMhj:hhubj)}(hhh]h)}(hjSet the current allocation limit to allow limiting allocations to what is currently accessible during booth]hjSet the current allocation limit to allow limiting allocations to what is currently accessible during boot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj:hhhjVhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjj jj jjjuh1j`hhhj0hNhNubj)}(hJ**Parameters** ``phys_addr_t limit`` New limit value (physical address)h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhj ubj)}(hhh]j)}(h8``phys_addr_t limit`` New limit value (physical address)h](j)}(h``phys_addr_t limit``h]h)}(hj- h]hphys_addr_t limit}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+ ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhj' ubj3)}(hhh]h)}(h"New limit value (physical address)h]h"New limit value (physical address)}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhjC ubah}(h]h ]h"]h$]h&]uh1j2hj' ubeh}(h]h ]h"]h$]h&]uh1jhjB hMhj$ ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\,memblock_region_memory_base_pfn (C function)!c.memblock_region_memory_base_pfnhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hQunsigned long memblock_region_memory_base_pfn (const struct memblock_region *reg)h]jl)}(hPunsigned long memblock_region_memory_base_pfn(const struct memblock_region *reg)h](jF)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj hhh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hMubjF)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj hhhj hMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hMubj)}(hmemblock_region_memory_base_pfnh]j)}(hmemblock_region_memory_base_pfnh]hmemblock_region_memory_base_pfn}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj hhhj hMubj~)}(h#(const struct memblock_region *reg)h]j)}(h!const struct memblock_region *regh](jr)}(hconsth]hconst}(hj hhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjr)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhj ubj)}(h h]h }(hj !hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j)}(hmemblock_regionh]hmemblock_region}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj!modnameN classnameNjj)}j]j)}jj sb!c.memblock_region_memory_base_pfnasbuh1hhj ubj)}(h h]h }(hj:!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubhdesc_sig_punctuation)}(hj$h]h*}(hjJ!hhhNhNubah}(h]h ]pah"]h$]h&]uh1jH!hj ubj)}(hregh]hreg}(hjX!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1j}hj hhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhj hhhj hMubah}(h]jz ah ](jjeh"]h$]h&]jj)jhuh1jehj hMhj| hhubj)}(hhh]h)}(h'get the lowest pfn of the memory regionh]h'get the lowest pfn of the memory region}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhj!hhubah}(h]h ]h"]h$]h&]uh1jhj| hhhj hMubeh}(h]h ](hfunctioneh"]h$]h&]jhjj!jj!jjjuh1j`hhhj0hNhNubj)}(h**Parameters** ``const struct memblock_region *reg`` memblock_region structure **Return** the lowest pfn intersecting with the memory regionh](h)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhj!ubj)}(hhh]j)}(h@``const struct memblock_region *reg`` memblock_region structure h](j)}(h%``const struct memblock_region *reg``h]h)}(hj!h]h!const struct memblock_region *reg}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhj!ubj3)}(hhh]h)}(hmemblock_region structureh]hmemblock_region structure}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMhj!ubah}(h]h ]h"]h$]h&]uh1j2hj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hMhj!ubah}(h]h ]h"]h$]h&]uh1j hj!ubh)}(h **Return**h]j)}(hj!h]hReturn}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhj!ubh)}(h2the lowest pfn intersecting with the memory regionh]h2the lowest pfn intersecting with the memory region}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\+memblock_region_memory_end_pfn (C function) c.memblock_region_memory_end_pfnhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hPunsigned long memblock_region_memory_end_pfn (const struct memblock_region *reg)h]jl)}(hOunsigned long memblock_region_memory_end_pfn(const struct memblock_region *reg)h](jF)}(hunsignedh]hunsigned}(hjC"hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj?"hhh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMubj)}(h h]h }(hjR"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?"hhhjQ"hMubjF)}(hlongh]hlong}(hj`"hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj?"hhhjQ"hMubj)}(h h]h }(hjn"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?"hhhjQ"hMubj)}(hmemblock_region_memory_end_pfnh]j)}(hmemblock_region_memory_end_pfnh]hmemblock_region_memory_end_pfn}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|"ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj?"hhhjQ"hMubj~)}(h#(const struct memblock_region *reg)h]j)}(h!const struct memblock_region *regh](jr)}(hj h]hconst}(hj"hhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjr)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubh)}(hhh]j)}(hmemblock_regionh]hmemblock_region}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj"modnameN classnameNjj)}j]j)}jj"sb c.memblock_region_memory_end_pfnasbuh1hhj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjI!)}(hj$h]h*}(hj#hhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hj"ubj)}(hregh]hreg}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubah}(h]h ]h"]h$]h&]jjuh1j}hj?"hhhjQ"hMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhj;"hhhjQ"hMubah}(h]j6"ah ](jjeh"]h$]h&]jj)jhuh1jehjQ"hMhj8"hhubj)}(hhh]h)}(h$get the end pfn of the memory regionh]h$get the end pfn of the memory region}(hj:#hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM hj7#hhubah}(h]h ]h"]h$]h&]uh1jhj8"hhhjQ"hMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjR#jjR#jjjuh1j`hhhj0hNhNubj)}(h**Parameters** ``const struct memblock_region *reg`` memblock_region structure **Return** the end_pfn of the reserved regionh](h)}(h**Parameters**h]j)}(hj\#h]h Parameters}(hj^#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ#ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhjV#ubj)}(hhh]j)}(h@``const struct memblock_region *reg`` memblock_region structure h](j)}(h%``const struct memblock_region *reg``h]h)}(hj{#h]h!const struct memblock_region *reg}(hj}#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjy#ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM hju#ubj3)}(hhh]h)}(hmemblock_region structureh]hmemblock_region structure}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hM hj#ubah}(h]h ]h"]h$]h&]uh1j2hju#ubeh}(h]h ]h"]h$]h&]uh1jhj#hM hjr#ubah}(h]h ]h"]h$]h&]uh1j hjV#ubh)}(h **Return**h]j)}(hj#h]hReturn}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhjV#ubh)}(h"the end_pfn of the reserved regionh]h"the end_pfn of the reserved region}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhjV#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\.memblock_region_reserved_base_pfn (C function)#c.memblock_region_reserved_base_pfnhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hSunsigned long memblock_region_reserved_base_pfn (const struct memblock_region *reg)h]jl)}(hRunsigned long memblock_region_reserved_base_pfn(const struct memblock_region *reg)h](jF)}(hunsignedh]hunsigned}(hj#hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj#hhh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMubj)}(h h]h }(hj $hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj $hMubjF)}(hlongh]hlong}(hj$hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj#hhhj $hMubj)}(h h]h }(hj&$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj $hMubj)}(h!memblock_region_reserved_base_pfnh]j)}(h!memblock_region_reserved_base_pfnh]h!memblock_region_reserved_base_pfn}(hj8$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4$ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj#hhhj $hMubj~)}(h#(const struct memblock_region *reg)h]j)}(h!const struct memblock_region *regh](jr)}(hj h]hconst}(hjT$hhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhjP$ubj)}(h h]h }(hja$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP$ubjr)}(hjh]hstruct}(hjo$hhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhjP$ubj)}(h h]h }(hj|$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP$ubh)}(hhh]j)}(hmemblock_regionh]hmemblock_region}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj$modnameN classnameNjj)}j]j)}jj:$sb#c.memblock_region_reserved_base_pfnasbuh1hhjP$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP$ubjI!)}(hj$h]h*}(hj$hhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjP$ubj)}(hregh]hreg}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjL$ubah}(h]h ]h"]h$]h&]jjuh1j}hj#hhhj $hMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhj#hhhj $hMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1jehj $hMhj#hhubj)}(hhh]h)}(h)get the lowest pfn of the reserved regionh]h)get the lowest pfn of the reserved region}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhj$hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj $hMubeh}(h]h ](hfunctioneh"]h$]h&]jhjj %jj %jjjuh1j`hhhj0hNhNubj)}(h**Parameters** ``const struct memblock_region *reg`` memblock_region structure **Return** the lowest pfn intersecting with the reserved regionh](h)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhj%ubj)}(hhh]j)}(h@``const struct memblock_region *reg`` memblock_region structure h](j)}(h%``const struct memblock_region *reg``h]h)}(hj3%h]h!const struct memblock_region *reg}(hj5%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1%ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhj-%ubj3)}(hhh]h)}(hmemblock_region structureh]hmemblock_region structure}(hjL%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH%hMhjI%ubah}(h]h ]h"]h$]h&]uh1j2hj-%ubeh}(h]h ]h"]h$]h&]uh1jhjH%hMhj*%ubah}(h]h ]h"]h$]h&]uh1j hj%ubh)}(h **Return**h]j)}(hjn%h]hReturn}(hjp%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl%ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhj%ubh)}(h4the lowest pfn intersecting with the reserved regionh]h4the lowest pfn intersecting with the reserved region}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\-memblock_region_reserved_end_pfn (C function)"c.memblock_region_reserved_end_pfnhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hRunsigned long memblock_region_reserved_end_pfn (const struct memblock_region *reg)h]jl)}(hQunsigned long memblock_region_reserved_end_pfn(const struct memblock_region *reg)h](jF)}(hunsignedh]hunsigned}(hj%hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj%hhh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM'ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj%hM'ubjF)}(hlongh]hlong}(hj%hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj%hhhj%hM'ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj%hM'ubj)}(h memblock_region_reserved_end_pfnh]j)}(h memblock_region_reserved_end_pfnh]h memblock_region_reserved_end_pfn}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj%hhhj%hM'ubj~)}(h#(const struct memblock_region *reg)h]j)}(h!const struct memblock_region *regh](jr)}(hj h]hconst}(hj &hhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhj&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubjr)}(hjh]hstruct}(hj'&hhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhj&ubj)}(h h]h }(hj4&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubh)}(hhh]j)}(hmemblock_regionh]hmemblock_region}(hjE&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB&ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjG&modnameN classnameNjj)}j]j)}jj%sb"c.memblock_region_reserved_end_pfnasbuh1hhj&ubj)}(h h]h }(hje&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubjI!)}(hj$h]h*}(hjs&hhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hj&ubj)}(hregh]hreg}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&ubah}(h]h ]h"]h$]h&]jjuh1j}hj%hhhj%hM'ubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhj%hhhj%hM'ubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1jehj%hM'hj%hhubj)}(hhh]h)}(h&get the end pfn of the reserved regionh]h&get the end pfn of the reserved region}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.h"hM"hj&hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj%hM'ubeh}(h]h ](hfunctioneh"]h$]h&]jhjj&jj&jjjuh1j`hhhj0hNhNubj)}(h**Parameters** ``const struct memblock_region *reg`` memblock_region structure **Return** the end_pfn of the reserved regionh](h)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM&hj&ubj)}(hhh]j)}(h@``const struct memblock_region *reg`` memblock_region structure h](j)}(h%``const struct memblock_region *reg``h]h)}(hj&h]h!const struct memblock_region *reg}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM#hj&ubj3)}(hhh]h)}(hmemblock_region structureh]hmemblock_region structure}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hM#hj'ubah}(h]h ]h"]h$]h&]uh1j2hj&ubeh}(h]h ]h"]h$]h&]uh1jhj'hM#hj&ubah}(h]h ]h"]h$]h&]uh1j hj&ubh)}(h **Return**h]j)}(hj&'h]hReturn}(hj('hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$'ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM%hj&ubh)}(h"the end_pfn of the reserved regionh]h"the end_pfn of the reserved region}(hj<'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM%hj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\for_each_mem_region (C macro)c.for_each_mem_regionhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hfor_each_mem_regionh]jl)}(hfor_each_mem_regionh]j)}(hfor_each_mem_regionh]j)}(hje'h]hfor_each_mem_region}(hjo'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk'ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjg'hhh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM0ubah}(h]h ]h"]h$]h&]jjjuh1jkjjhjc'hhhj'hM0ubah}(h]j^'ah ](jjeh"]h$]h&]jj)jhuh1jehj'hM0hj`'hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj`'hhhj'hM0ubeh}(h]h ](hmacroeh"]h$]h&]jhjj'jj'jjjuh1j`hhhj0hNhNubh)}(h ``for_each_mem_region (region)``h]h)}(hj'h]hfor_each_mem_region (region)}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM2hj0hhubj< )}(hiterate over memory regions h]h)}(hiterate over memory regionsh]hiterate over memory regions}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM-hj'ubah}(h]h ]h"]h$]h&]uh1j; hj'hM-hj0hhubj)}(h***Parameters** ``region`` loop variableh](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM1hj'ubj)}(hhh]j)}(h``region`` loop variableh](j)}(h ``region``h]h)}(hj'h]hregion}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM3hj'ubj3)}(hhh]h)}(h loop variableh]h loop variable}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM.hj (ubah}(h]h ]h"]h$]h&]uh1j2hj'ubeh}(h]h ]h"]h$]h&]uh1jhj (hM3hj'ubah}(h]h ]h"]h$]h&]uh1j hj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\&for_each_reserved_mem_region (C macro)c.for_each_reserved_mem_regionhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hfor_each_reserved_mem_regionh]jl)}(hfor_each_reserved_mem_regionh]j)}(hfor_each_reserved_mem_regionh]j)}(hjI(h]hfor_each_reserved_mem_region}(hjS(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO(ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjK(hhh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM9ubah}(h]h ]h"]h$]h&]jjjuh1jkjjhjG(hhhjf(hM9ubah}(h]jB(ah ](jjeh"]h$]h&]jj)jhuh1jehjf(hM9hjD(hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjD(hhhjf(hM9ubeh}(h]h ](hmacroeh"]h$]h&]jhjj(jj(jjjuh1j`hhhj0hNhNubh)}(h)``for_each_reserved_mem_region (region)``h]h)}(hj(h]h%for_each_reserved_mem_region (region)}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM;hj0hhubj< )}(h&itereate over reserved memory regions h]h)}(h%itereate over reserved memory regionsh]h%itereate over reserved memory regions}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM6hj(ubah}(h]h ]h"]h$]h&]uh1j; hj(hM6hj0hhubj)}(h***Parameters** ``region`` loop variableh](h)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM:hj(ubj)}(hhh]j)}(h``region`` loop variableh](j)}(h ``region``h]h)}(hj(h]hregion}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM<hj(ubj3)}(hhh]h)}(h loop variableh]h loop variable}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh^/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:39: ./include/linux/memblock.hhM7hj(ubah}(h]h ]h"]h$]h&]uh1j2hj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hM<hj(ubah}(h]h ]h"]h$]h&]uh1j hj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\,__memblock_find_range_bottom_up (C function)!c.__memblock_find_range_bottom_uphNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hphys_addr_t __init_memblock __memblock_find_range_bottom_up (phys_addr_t start, phys_addr_t end, phys_addr_t size, phys_addr_t align, int nid, enum memblock_flags flags)h]jl)}(hphys_addr_t __init_memblock __memblock_find_range_bottom_up(phys_addr_t start, phys_addr_t end, phys_addr_t size, phys_addr_t align, int nid, enum memblock_flags flags)h](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj6)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3)ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj8)modnameN classnameNjj)}j]j)}j__memblock_find_range_bottom_upsb!c.__memblock_find_range_bottom_upasbuh1hhj/)hhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKubj)}(h h]h }(hjX)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/)hhhjW)hKubh__init_memblock}(hj/)hhhNhNubj)}(h h]h }(hjj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/)hhhjW)hKubj)}(h__memblock_find_range_bottom_uph]j)}(hjT)h]h__memblock_find_range_bottom_up}(hj|)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx)ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj/)hhhjW)hKubj~)}(hm(phys_addr_t start, phys_addr_t end, phys_addr_t size, phys_addr_t align, int nid, enum memblock_flags flags)h](j)}(hphys_addr_t starth](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj)modnameN classnameNjj)}j]jR)!c.__memblock_find_range_bottom_upasbuh1hhj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hstarth]hstart}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(hphys_addr_t endh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj)modnameN classnameNjj)}j]jR)!c.__memblock_find_range_bottom_upasbuh1hhj)ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hendh]hend}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj**hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'*ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj,*modnameN classnameNjj)}j]jR)!c.__memblock_find_range_bottom_upasbuh1hhj#*ubj)}(h h]h }(hjH*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#*ubj)}(hsizeh]hsize}(hjV*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(hphys_addr_t alignh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjr*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo*ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjt*modnameN classnameNjj)}j]jR)!c.__memblock_find_range_bottom_upasbuh1hhjk*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk*ubj)}(halignh]halign}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(hint nidh](jF)}(hinth]hint}(hj*hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hnidh]hnid}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(henum memblock_flags flagsh](jr)}(hjuh]henum}(hj*hhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(hhh]j)}(hmemblock_flagsh]hmemblock_flags}(hj +hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj +modnameN classnameNjj)}j]jR)!c.__memblock_find_range_bottom_upasbuh1hhj*ubj)}(h h]h }(hj(+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hflagsh]hflags}(hj6+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubeh}(h]h ]h"]h$]h&]jjuh1j}hj/)hhhjW)hKubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhj+)hhhjW)hKubah}(h]j&)ah ](jjeh"]h$]h&]jj)jhuh1jehjW)hKhj()hhubj)}(hhh]h)}(h#find free area utility in bottom-uph]h#find free area utility in bottom-up}(hj`+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj]+hhubah}(h]h ]h"]h$]h&]uh1jhj()hhhjW)hKubeh}(h]h ](hfunctioneh"]h$]h&]jhjjx+jjx+jjjuh1j`hhhj0hNhNubj)}(hXK**Parameters** ``phys_addr_t start`` start of candidate range ``phys_addr_t end`` end of candidate range, can be ``MEMBLOCK_ALLOC_ANYWHERE`` or ``MEMBLOCK_ALLOC_ACCESSIBLE`` ``phys_addr_t size`` size of free area to find ``phys_addr_t align`` alignment of free area to find ``int nid`` nid of the free area to find, ``NUMA_NO_NODE`` for any node ``enum memblock_flags flags`` pick from blocks based on memory attributes **Description** Utility called from memblock_find_in_range_node(), find free area bottom-up. **Return** Found address on success, 0 on failure.h](h)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj|+ubj)}(hhh](j)}(h/``phys_addr_t start`` start of candidate range h](j)}(h``phys_addr_t start``h]h)}(hj+h]hphys_addr_t start}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj+ubj3)}(hhh]h)}(hstart of candidate rangeh]hstart of candidate range}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hKhj+ubah}(h]h ]h"]h$]h&]uh1j2hj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hKhj+ubj)}(hp``phys_addr_t end`` end of candidate range, can be ``MEMBLOCK_ALLOC_ANYWHERE`` or ``MEMBLOCK_ALLOC_ACCESSIBLE`` h](j)}(h``phys_addr_t end``h]h)}(hj+h]hphys_addr_t end}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj+ubj3)}(hhh]h)}(h[end of candidate range, can be ``MEMBLOCK_ALLOC_ANYWHERE`` or ``MEMBLOCK_ALLOC_ACCESSIBLE``h](hend of candidate range, can be }(hj+hhhNhNubh)}(h``MEMBLOCK_ALLOC_ANYWHERE``h]hMEMBLOCK_ALLOC_ANYWHERE}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+ubh or }(hj+hhhNhNubh)}(h``MEMBLOCK_ALLOC_ACCESSIBLE``h]hMEMBLOCK_ALLOC_ACCESSIBLE}(hj ,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+ubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj+ubah}(h]h ]h"]h$]h&]uh1j2hj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hKhj+ubj)}(h/``phys_addr_t size`` size of free area to find h](j)}(h``phys_addr_t size``h]h)}(hj4,h]hphys_addr_t size}(hj6,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2,ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj.,ubj3)}(hhh]h)}(hsize of free area to findh]hsize of free area to find}(hjM,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjI,hKhjJ,ubah}(h]h ]h"]h$]h&]uh1j2hj.,ubeh}(h]h ]h"]h$]h&]uh1jhjI,hKhj+ubj)}(h5``phys_addr_t align`` alignment of free area to find h](j)}(h``phys_addr_t align``h]h)}(hjm,h]hphys_addr_t align}(hjo,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk,ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhjg,ubj3)}(hhh]h)}(halignment of free area to findh]halignment of free area to find}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hKhj,ubah}(h]h ]h"]h$]h&]uh1j2hjg,ubeh}(h]h ]h"]h$]h&]uh1jhj,hKhj+ubj)}(hH``int nid`` nid of the free area to find, ``NUMA_NO_NODE`` for any node h](j)}(h ``int nid``h]h)}(hj,h]hint nid}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj,ubj3)}(hhh]h)}(h;nid of the free area to find, ``NUMA_NO_NODE`` for any nodeh](hnid of the free area to find, }(hj,hhhNhNubh)}(h``NUMA_NO_NODE``h]h NUMA_NO_NODE}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,ubh for any node}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj,hKhj,ubah}(h]h ]h"]h$]h&]uh1j2hj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hKhj+ubj)}(hJ``enum memblock_flags flags`` pick from blocks based on memory attributes h](j)}(h``enum memblock_flags flags``h]h)}(hj,h]henum memblock_flags flags}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj,ubj3)}(hhh]h)}(h+pick from blocks based on memory attributesh]h+pick from blocks based on memory attributes}(hj -hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hKhj-ubah}(h]h ]h"]h$]h&]uh1j2hj,ubeh}(h]h ]h"]h$]h&]uh1jhj-hKhj+ubeh}(h]h ]h"]h$]h&]uh1j hj|+ubh)}(h**Description**h]j)}(hj,-h]h Description}(hj.-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*-ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj|+ubh)}(hLUtility called from memblock_find_in_range_node(), find free area bottom-up.h]hLUtility called from memblock_find_in_range_node(), find free area bottom-up.}(hjB-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj|+ubh)}(h **Return**h]j)}(hjS-h]hReturn}(hjU-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ-ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj|+ubh)}(h'Found address on success, 0 on failure.h]h'Found address on success, 0 on failure.}(hji-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj|+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\+__memblock_find_range_top_down (C function) c.__memblock_find_range_top_downhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hphys_addr_t __init_memblock __memblock_find_range_top_down (phys_addr_t start, phys_addr_t end, phys_addr_t size, phys_addr_t align, int nid, enum memblock_flags flags)h]jl)}(hphys_addr_t __init_memblock __memblock_find_range_top_down(phys_addr_t start, phys_addr_t end, phys_addr_t size, phys_addr_t align, int nid, enum memblock_flags flags)h](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj-modnameN classnameNjj)}j]j)}j__memblock_find_range_top_downsb c.__memblock_find_range_top_downasbuh1hhj-hhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj-hKubh__init_memblock}(hj-hhhNhNubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj-hKubj)}(h__memblock_find_range_top_downh]j)}(hj-h]h__memblock_find_range_top_down}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj-hhhj-hKubj~)}(hm(phys_addr_t start, phys_addr_t end, phys_addr_t size, phys_addr_t align, int nid, enum memblock_flags flags)h](j)}(hphys_addr_t starth](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj.modnameN classnameNjj)}j]j- c.__memblock_find_range_top_downasbuh1hhj-ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hstarth]hstart}(hj+.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hphys_addr_t endh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjG.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD.ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjI.modnameN classnameNjj)}j]j- c.__memblock_find_range_top_downasbuh1hhj@.ubj)}(h h]h }(hje.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@.ubj)}(hendh]hend}(hjs.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj.modnameN classnameNjj)}j]j- c.__memblock_find_range_top_downasbuh1hhj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hsizeh]hsize}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hphys_addr_t alignh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj.modnameN classnameNjj)}j]j- c.__memblock_find_range_top_downasbuh1hhj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(halignh]halign}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hint nidh](jF)}(hinth]hint}(hj/hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj/ubj)}(h h]h }(hj*/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hnidh]hnid}(hj8/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(henum memblock_flags flagsh](jr)}(hjuh]henum}(hjQ/hhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhjM/ubj)}(h h]h }(hj^/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM/ubh)}(hhh]j)}(hmemblock_flagsh]hmemblock_flags}(hjo/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl/ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjq/modnameN classnameNjj)}j]j- c.__memblock_find_range_top_downasbuh1hhjM/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM/ubj)}(hflagsh]hflags}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubeh}(h]h ]h"]h$]h&]jjuh1j}hj-hhhj-hKubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhj-hhhj-hKubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1jehj-hKhj-hhubj)}(hhh]h)}(h#find free area utility, in top-downh]h#find free area utility, in top-down}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj/hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhj-hKubeh}(h]h ](hfunctioneh"]h$]h&]jhjj/jj/jjjuh1j`hhhj0hNhNubj)}(hXJ**Parameters** ``phys_addr_t start`` start of candidate range ``phys_addr_t end`` end of candidate range, can be ``MEMBLOCK_ALLOC_ANYWHERE`` or ``MEMBLOCK_ALLOC_ACCESSIBLE`` ``phys_addr_t size`` size of free area to find ``phys_addr_t align`` alignment of free area to find ``int nid`` nid of the free area to find, ``NUMA_NO_NODE`` for any node ``enum memblock_flags flags`` pick from blocks based on memory attributes **Description** Utility called from memblock_find_in_range_node(), find free area top-down. **Return** Found address on success, 0 on failure.h](h)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj/ubj)}(hhh](j)}(h/``phys_addr_t start`` start of candidate range h](j)}(h``phys_addr_t start``h]h)}(hj0h]hphys_addr_t start}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj0ubj3)}(hhh]h)}(hstart of candidate rangeh]hstart of candidate range}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hKhj0ubah}(h]h ]h"]h$]h&]uh1j2hj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hKhj/ubj)}(hp``phys_addr_t end`` end of candidate range, can be ``MEMBLOCK_ALLOC_ANYWHERE`` or ``MEMBLOCK_ALLOC_ACCESSIBLE`` h](j)}(h``phys_addr_t end``h]h)}(hj?0h]hphys_addr_t end}(hjA0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj90ubj3)}(hhh]h)}(h[end of candidate range, can be ``MEMBLOCK_ALLOC_ANYWHERE`` or ``MEMBLOCK_ALLOC_ACCESSIBLE``h](hend of candidate range, can be }(hjX0hhhNhNubh)}(h``MEMBLOCK_ALLOC_ANYWHERE``h]hMEMBLOCK_ALLOC_ANYWHERE}(hj`0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX0ubh or }(hjX0hhhNhNubh)}(h``MEMBLOCK_ALLOC_ACCESSIBLE``h]hMEMBLOCK_ALLOC_ACCESSIBLE}(hjr0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX0ubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhjU0ubah}(h]h ]h"]h$]h&]uh1j2hj90ubeh}(h]h ]h"]h$]h&]uh1jhjT0hKhj/ubj)}(h/``phys_addr_t size`` size of free area to find h](j)}(h``phys_addr_t size``h]h)}(hj0h]hphys_addr_t size}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj0ubj3)}(hhh]h)}(hsize of free area to findh]hsize of free area to find}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hKhj0ubah}(h]h ]h"]h$]h&]uh1j2hj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hKhj/ubj)}(h5``phys_addr_t align`` alignment of free area to find h](j)}(h``phys_addr_t align``h]h)}(hj0h]hphys_addr_t align}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj0ubj3)}(hhh]h)}(halignment of free area to findh]halignment of free area to find}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hKhj0ubah}(h]h ]h"]h$]h&]uh1j2hj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hKhj/ubj)}(hH``int nid`` nid of the free area to find, ``NUMA_NO_NODE`` for any node h](j)}(h ``int nid``h]h)}(hj 1h]hint nid}(hj 1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj 1ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj1ubj3)}(hhh]h)}(h;nid of the free area to find, ``NUMA_NO_NODE`` for any nodeh](hnid of the free area to find, }(hj$1hhhNhNubh)}(h``NUMA_NO_NODE``h]h NUMA_NO_NODE}(hj,1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$1ubh for any node}(hj$1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj 1hKhj!1ubah}(h]h ]h"]h$]h&]uh1j2hj1ubeh}(h]h ]h"]h$]h&]uh1jhj 1hKhj/ubj)}(hJ``enum memblock_flags flags`` pick from blocks based on memory attributes h](j)}(h``enum memblock_flags flags``h]h)}(hjV1h]henum memblock_flags flags}(hjX1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjT1ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhjP1ubj3)}(hhh]h)}(h+pick from blocks based on memory attributesh]h+pick from blocks based on memory attributes}(hjo1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk1hKhjl1ubah}(h]h ]h"]h$]h&]uh1j2hjP1ubeh}(h]h ]h"]h$]h&]uh1jhjk1hKhj/ubeh}(h]h ]h"]h$]h&]uh1j hj/ubh)}(h**Description**h]j)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj/ubh)}(hKUtility called from memblock_find_in_range_node(), find free area top-down.h]hKUtility called from memblock_find_in_range_node(), find free area top-down.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj/ubh)}(h **Return**h]j)}(hj1h]hReturn}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj/ubh)}(h'Found address on success, 0 on failure.h]h'Found address on success, 0 on failure.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chKhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\(memblock_find_in_range_node (C function)c.memblock_find_in_range_nodehNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hphys_addr_t __init_memblock memblock_find_in_range_node (phys_addr_t size, phys_addr_t align, phys_addr_t start, phys_addr_t end, int nid, enum memblock_flags flags)h]jl)}(hphys_addr_t __init_memblock memblock_find_in_range_node(phys_addr_t size, phys_addr_t align, phys_addr_t start, phys_addr_t end, int nid, enum memblock_flags flags)h](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj2modnameN classnameNjj)}j]j)}jmemblock_find_in_range_nodesbc.memblock_find_in_range_nodeasbuh1hhj1hhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM#ubj)}(h h]h }(hj"2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj!2hM#ubh__init_memblock}(hj1hhhNhNubj)}(h h]h }(hj42hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj!2hM#ubj)}(hmemblock_find_in_range_nodeh]j)}(hj2h]hmemblock_find_in_range_node}(hjF2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB2ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj1hhhj!2hM#ubj~)}(hm(phys_addr_t size, phys_addr_t align, phys_addr_t start, phys_addr_t end, int nid, enum memblock_flags flags)h](j)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjd2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja2ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjf2modnameN classnameNjj)}j]j2c.memblock_find_in_range_nodeasbuh1hhj]2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]2ubj)}(hsizeh]hsize}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjY2ubj)}(hphys_addr_t alignh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj2modnameN classnameNjj)}j]j2c.memblock_find_in_range_nodeasbuh1hhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(halignh]halign}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjY2ubj)}(hphys_addr_t starth](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj2modnameN classnameNjj)}j]j2c.memblock_find_in_range_nodeasbuh1hhj2ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hstarth]hstart}(hj 3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjY2ubj)}(hphys_addr_t endh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj<3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj93ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj>3modnameN classnameNjj)}j]j2c.memblock_find_in_range_nodeasbuh1hhj53ubj)}(h h]h }(hjZ3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj53ubj)}(hendh]hend}(hjh3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj53ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjY2ubj)}(hint nidh](jF)}(hinth]hint}(hj3hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj}3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}3ubj)}(hnidh]hnid}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjY2ubj)}(henum memblock_flags flagsh](jr)}(hjuh]henum}(hj3hhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hhh]j)}(hmemblock_flagsh]hmemblock_flags}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj3modnameN classnameNjj)}j]j2c.memblock_find_in_range_nodeasbuh1hhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hflagsh]hflags}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjY2ubeh}(h]h ]h"]h$]h&]jjuh1j}hj1hhhj!2hM#ubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhj1hhhj!2hM#ubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1jehj!2hM#hj1hhubj)}(hhh]h)}(h&find free area in given range and nodeh]h&find free area in given range and node}(hj*4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj'4hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj!2hM#ubeh}(h]h ](hfunctioneh"]h$]h&]jhjjB4jjB4jjjuh1j`hhhj0hNhNubj)}(hXL**Parameters** ``phys_addr_t size`` size of free area to find ``phys_addr_t align`` alignment of free area to find ``phys_addr_t start`` start of candidate range ``phys_addr_t end`` end of candidate range, can be ``MEMBLOCK_ALLOC_ANYWHERE`` or ``MEMBLOCK_ALLOC_ACCESSIBLE`` ``int nid`` nid of the free area to find, ``NUMA_NO_NODE`` for any node ``enum memblock_flags flags`` pick from blocks based on memory attributes **Description** Find **size** free area aligned to **align** in the specified range and node. **Return** Found address on success, 0 on failure.h](h)}(h**Parameters**h]j)}(hjL4h]h Parameters}(hjN4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ4ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjF4ubj)}(hhh](j)}(h/``phys_addr_t size`` size of free area to find h](j)}(h``phys_addr_t size``h]h)}(hjk4h]hphys_addr_t size}(hjm4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhji4ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhje4ubj3)}(hhh]h)}(hsize of free area to findh]hsize of free area to find}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1j2hje4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjb4ubj)}(h5``phys_addr_t align`` alignment of free area to find h](j)}(h``phys_addr_t align``h]h)}(hj4h]hphys_addr_t align}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj4ubj3)}(hhh]h)}(halignment of free area to findh]halignment of free area to find}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1j2hj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjb4ubj)}(h/``phys_addr_t start`` start of candidate range h](j)}(h``phys_addr_t start``h]h)}(hj4h]hphys_addr_t start}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj4ubj3)}(hhh]h)}(hstart of candidate rangeh]hstart of candidate range}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1j2hj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjb4ubj)}(hp``phys_addr_t end`` end of candidate range, can be ``MEMBLOCK_ALLOC_ANYWHERE`` or ``MEMBLOCK_ALLOC_ACCESSIBLE`` h](j)}(h``phys_addr_t end``h]h)}(hj5h]hphys_addr_t end}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj5ubj3)}(hhh]h)}(h[end of candidate range, can be ``MEMBLOCK_ALLOC_ANYWHERE`` or ``MEMBLOCK_ALLOC_ACCESSIBLE``h](hend of candidate range, can be }(hj/5hhhNhNubh)}(h``MEMBLOCK_ALLOC_ANYWHERE``h]hMEMBLOCK_ALLOC_ANYWHERE}(hj75hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/5ubh or }(hj/5hhhNhNubh)}(h``MEMBLOCK_ALLOC_ACCESSIBLE``h]hMEMBLOCK_ALLOC_ACCESSIBLE}(hjI5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/5ubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj,5ubah}(h]h ]h"]h$]h&]uh1j2hj5ubeh}(h]h ]h"]h$]h&]uh1jhj+5hMhjb4ubj)}(hH``int nid`` nid of the free area to find, ``NUMA_NO_NODE`` for any node h](j)}(h ``int nid``h]h)}(hjp5h]hint nid}(hjr5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjn5ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjj5ubj3)}(hhh]h)}(h;nid of the free area to find, ``NUMA_NO_NODE`` for any nodeh](hnid of the free area to find, }(hj5hhhNhNubh)}(h``NUMA_NO_NODE``h]h NUMA_NO_NODE}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ubh for any node}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1j2hjj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjb4ubj)}(hJ``enum memblock_flags flags`` pick from blocks based on memory attributes h](j)}(h``enum memblock_flags flags``h]h)}(hj5h]henum memblock_flags flags}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj5ubj3)}(hhh]h)}(h+pick from blocks based on memory attributesh]h+pick from blocks based on memory attributes}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1j2hj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjb4ubeh}(h]h ]h"]h$]h&]uh1j hjF4ubh)}(h**Description**h]j)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjF4ubh)}(hMFind **size** free area aligned to **align** in the specified range and node.h](hFind }(hj 6hhhNhNubj)}(h**size**h]hsize}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 6ubh free area aligned to }(hj 6hhhNhNubj)}(h **align**h]halign}(hj&6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 6ubh! in the specified range and node.}(hj 6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjF4ubh)}(h **Return**h]j)}(hjA6h]hReturn}(hjC6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?6ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM hjF4ubh)}(h'Found address on success, 0 on failure.h]h'Found address on success, 0 on failure.}(hjW6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM hjF4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\#memblock_find_in_range (C function)c.memblock_find_in_rangehNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(h|phys_addr_t __init_memblock memblock_find_in_range (phys_addr_t start, phys_addr_t end, phys_addr_t size, phys_addr_t align)h]jl)}(h{phys_addr_t __init_memblock memblock_find_in_range(phys_addr_t start, phys_addr_t end, phys_addr_t size, phys_addr_t align)h](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj6modnameN classnameNjj)}j]j)}jmemblock_find_in_rangesbc.memblock_find_in_rangeasbuh1hhj6hhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMFubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhj6hMFubh__init_memblock}(hj6hhhNhNubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhj6hMFubj)}(hmemblock_find_in_rangeh]j)}(hj6h]hmemblock_find_in_range}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj6hhhj6hMFubj~)}(hI(phys_addr_t start, phys_addr_t end, phys_addr_t size, phys_addr_t align)h](j)}(hphys_addr_t starth](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj6modnameN classnameNjj)}j]j6c.memblock_find_in_rangeasbuh1hhj6ubj)}(h h]h }(hj 7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hstarth]hstart}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hphys_addr_t endh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj57hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj27ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj77modnameN classnameNjj)}j]j6c.memblock_find_in_rangeasbuh1hhj.7ubj)}(h h]h }(hjS7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.7ubj)}(hendh]hend}(hja7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj}7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz7ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj7modnameN classnameNjj)}j]j6c.memblock_find_in_rangeasbuh1hhjv7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv7ubj)}(hsizeh]hsize}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hphys_addr_t alignh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj7modnameN classnameNjj)}j]j6c.memblock_find_in_rangeasbuh1hhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(halignh]halign}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubeh}(h]h ]h"]h$]h&]jjuh1j}hj6hhhj6hMFubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhj~6hhhj6hMFubah}(h]jy6ah ](jjeh"]h$]h&]jj)jhuh1jehj6hMFhj{6hhubj)}(hhh]h)}(hfind free area in given rangeh]hfind free area in given range}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM:hj8hhubah}(h]h ]h"]h$]h&]uh1jhj{6hhhj6hMFubeh}(h]h ](hfunctioneh"]h$]h&]jhjj38jj38jjjuh1j`hhhj0hNhNubj)}(hX**Parameters** ``phys_addr_t start`` start of candidate range ``phys_addr_t end`` end of candidate range, can be ``MEMBLOCK_ALLOC_ANYWHERE`` or ``MEMBLOCK_ALLOC_ACCESSIBLE`` ``phys_addr_t size`` size of free area to find ``phys_addr_t align`` alignment of free area to find **Description** Find **size** free area aligned to **align** in the specified range. **Return** Found address on success, 0 on failure.h](h)}(h**Parameters**h]j)}(hj=8h]h Parameters}(hj?8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;8ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM>hj78ubj)}(hhh](j)}(h/``phys_addr_t start`` start of candidate range h](j)}(h``phys_addr_t start``h]h)}(hj\8h]hphys_addr_t start}(hj^8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZ8ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM;hjV8ubj3)}(hhh]h)}(hstart of candidate rangeh]hstart of candidate range}(hju8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjq8hM;hjr8ubah}(h]h ]h"]h$]h&]uh1j2hjV8ubeh}(h]h ]h"]h$]h&]uh1jhjq8hM;hjS8ubj)}(hp``phys_addr_t end`` end of candidate range, can be ``MEMBLOCK_ALLOC_ANYWHERE`` or ``MEMBLOCK_ALLOC_ACCESSIBLE`` h](j)}(h``phys_addr_t end``h]h)}(hj8h]hphys_addr_t end}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM=hj8ubj3)}(hhh]h)}(h[end of candidate range, can be ``MEMBLOCK_ALLOC_ANYWHERE`` or ``MEMBLOCK_ALLOC_ACCESSIBLE``h](hend of candidate range, can be }(hj8hhhNhNubh)}(h``MEMBLOCK_ALLOC_ANYWHERE``h]hMEMBLOCK_ALLOC_ANYWHERE}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8ubh or }(hj8hhhNhNubh)}(h``MEMBLOCK_ALLOC_ACCESSIBLE``h]hMEMBLOCK_ALLOC_ACCESSIBLE}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8ubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM<hj8ubah}(h]h ]h"]h$]h&]uh1j2hj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hM=hjS8ubj)}(h/``phys_addr_t size`` size of free area to find h](j)}(h``phys_addr_t size``h]h)}(hj8h]hphys_addr_t size}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM>hj8ubj3)}(hhh]h)}(hsize of free area to findh]hsize of free area to find}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hM>hj9ubah}(h]h ]h"]h$]h&]uh1j2hj8ubeh}(h]h ]h"]h$]h&]uh1jhj9hM>hjS8ubj)}(h5``phys_addr_t align`` alignment of free area to find h](j)}(h``phys_addr_t align``h]h)}(hj(9h]hphys_addr_t align}(hj*9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&9ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM?hj"9ubj3)}(hhh]h)}(halignment of free area to findh]halignment of free area to find}(hjA9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=9hM?hj>9ubah}(h]h ]h"]h$]h&]uh1j2hj"9ubeh}(h]h ]h"]h$]h&]uh1jhj=9hM?hjS8ubeh}(h]h ]h"]h$]h&]uh1j hj78ubh)}(h**Description**h]j)}(hjc9h]h Description}(hje9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja9ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMAhj78ubh)}(hDFind **size** free area aligned to **align** in the specified range.h](hFind }(hjy9hhhNhNubj)}(h**size**h]hsize}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy9ubh free area aligned to }(hjy9hhhNhNubj)}(h **align**h]halign}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy9ubh in the specified range.}(hjy9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMAhj78ubh)}(h **Return**h]j)}(hj9h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMChj78ubh)}(h'Found address on success, 0 on failure.h]h'Found address on success, 0 on failure.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMChj78ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\memblock_discard (C function)c.memblock_discardhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hvoid memblock_discard (void)h]jl)}(hvoid memblock_discard(void)h](jF)}(hvoidh]hvoid}(hj9hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj9hhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMpubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj:hMpubj)}(hmemblock_discardh]j)}(hmemblock_discardh]hmemblock_discard}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj9hhhj:hMpubj~)}(h(void)h]j)}(hvoidh]jF)}(hvoidh]hvoid}(hj0:hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj,:ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj(:ubah}(h]h ]h"]h$]h&]jjuh1j}hj9hhhj:hMpubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhj9hhhj:hMpubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1jehj:hMphj9hhubj)}(hhh]h)}(h9discard memory and reserved arrays if they were allocatedh]h9discard memory and reserved arrays if they were allocated}(hjZ:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMnhjW:hhubah}(h]h ]h"]h$]h&]uh1jhj9hhhj:hMpubeh}(h]h ](hfunctioneh"]h$]h&]jhjjr:jjr:jjjuh1j`hhhj0hNhNubj)}(h'**Parameters** ``void`` no argumentsh](h)}(h**Parameters**h]j)}(hj|:h]h Parameters}(hj~:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz:ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMrhjv:ubj)}(hhh]j)}(h``void`` no argumentsh](j)}(h``void``h]h)}(hj:h]hvoid}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMthj:ubj3)}(hhh]h)}(h no argumentsh]h no arguments}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMuhj:ubah}(h]h ]h"]h$]h&]uh1j2hj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hMthj:ubah}(h]h ]h"]h$]h&]uh1j hjv:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\"memblock_double_array (C function)c.memblock_double_arrayhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(h}int __init_memblock memblock_double_array (struct memblock_type *type, phys_addr_t new_area_start, phys_addr_t new_area_size)h]jl)}(h|int __init_memblock memblock_double_array(struct memblock_type *type, phys_addr_t new_area_start, phys_addr_t new_area_size)h](jF)}(hinth]hint}(hj:hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj:hhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhj;hMubh__init_memblock}(hj:hhhNhNubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhj;hMubj)}(hmemblock_double_arrayh]j)}(hmemblock_double_arrayh]hmemblock_double_array}(hj(;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$;ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj:hhhj;hMubj~)}(hS(struct memblock_type *type, phys_addr_t new_area_start, phys_addr_t new_area_size)h](j)}(hstruct memblock_type *typeh](jr)}(hjh]hstruct}(hjD;hhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhj@;ubj)}(h h]h }(hjQ;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@;ubh)}(hhh]j)}(h memblock_typeh]h memblock_type}(hjb;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_;ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjd;modnameN classnameNjj)}j]j)}jj*;sbc.memblock_double_arrayasbuh1hhj@;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@;ubjI!)}(hj$h]h*}(hj;hhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hj@;ubj)}(htypeh]htype}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<;ubj)}(hphys_addr_t new_area_starth](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj;modnameN classnameNjj)}j]j~;c.memblock_double_arrayasbuh1hhj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hnew_area_starth]hnew_area_start}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<;ubj)}(hphys_addr_t new_area_sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj<modnameN classnameNjj)}j]j~;c.memblock_double_arrayasbuh1hhj;ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h new_area_sizeh]h new_area_size}(hj-<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<;ubeh}(h]h ]h"]h$]h&]jjuh1j}hj:hhhj;hMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhj:hhhj;hMubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1jehj;hMhj:hhubj)}(hhh]h)}(h-double the size of the memblock regions arrayh]h-double the size of the memblock regions array}(hjW<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjT<hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj;hMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjo<jjo<jjjuh1j`hhhj0hNhNubj)}(hX**Parameters** ``struct memblock_type *type`` memblock type of the regions array being doubled ``phys_addr_t new_area_start`` starting address of memory range to avoid overlap with ``phys_addr_t new_area_size`` size of memory range to avoid overlap with **Description** Double the size of the **type** regions array. If memblock is being used to allocate memory for a new reserved regions array and there is a previously allocated memory range [**new_area_start**, **new_area_start** + **new_area_size**] waiting to be reserved, ensure the memory used by the new array does not overlap. **Return** 0 on success, -1 on failure.h](h)}(h**Parameters**h]j)}(hjy<h]h Parameters}(hj{<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw<ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjs<ubj)}(hhh](j)}(hP``struct memblock_type *type`` memblock type of the regions array being doubled h](j)}(h``struct memblock_type *type``h]h)}(hj<h]hstruct memblock_type *type}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj<ubj3)}(hhh]h)}(h0memblock type of the regions array being doubledh]h0memblock type of the regions array being doubled}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1j2hj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhj<ubj)}(hV``phys_addr_t new_area_start`` starting address of memory range to avoid overlap with h](j)}(h``phys_addr_t new_area_start``h]h)}(hj<h]hphys_addr_t new_area_start}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj<ubj3)}(hhh]h)}(h6starting address of memory range to avoid overlap withh]h6starting address of memory range to avoid overlap with$}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1j2hj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhj<ubj)}(hI``phys_addr_t new_area_size`` size of memory range to avoid overlap with h](j)}(h``phys_addr_t new_area_size``h]h)}(hj =h]hphys_addr_t new_area_size}(hj =hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj=ubj3)}(hhh]h)}(h*size of memory range to avoid overlap withh]h*size of memory range to avoid overlap with}(hj#=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj =ubah}(h]h ]h"]h$]h&]uh1j2hj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhj<ubeh}(h]h ]h"]h$]h&]uh1j hjs<ubh)}(h**Description**h]j)}(hjE=h]h Description}(hjG=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC=ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjs<ubh)}(hX<Double the size of the **type** regions array. If memblock is being used to allocate memory for a new reserved regions array and there is a previously allocated memory range [**new_area_start**, **new_area_start** + **new_area_size**] waiting to be reserved, ensure the memory used by the new array does not overlap.h](hDouble the size of the }(hj[=hhhNhNubj)}(h**type**h]htype}(hjc=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[=ubh regions array. If memblock is being used to allocate memory for a new reserved regions array and there is a previously allocated memory range [}(hj[=hhhNhNubj)}(h**new_area_start**h]hnew_area_start}(hju=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[=ubh, }(hj[=hhhNhNubj)}(h**new_area_start**h]hnew_area_start}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[=ubh + }(hj[=hhhNhNubj)}(h**new_area_size**h]h new_area_size}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[=ubhS] waiting to be reserved, ensure the memory used by the new array does not overlap.}(hj[=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjs<ubh)}(h **Return**h]j)}(hj=h]hReturn}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjs<ubh)}(h0 on success, -1 on failure.h]h0 on success, -1 on failure.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjs<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\#memblock_merge_regions (C function)c.memblock_merge_regionshNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hxvoid __init_memblock memblock_merge_regions (struct memblock_type *type, unsigned long start_rgn, unsigned long end_rgn)h]jl)}(hwvoid __init_memblock memblock_merge_regions(struct memblock_type *type, unsigned long start_rgn, unsigned long end_rgn)h](jF)}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj=hhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj>hMubh__init_memblock}(hj=hhhNhNubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj>hMubj)}(hmemblock_merge_regionsh]j)}(hmemblock_merge_regionsh]hmemblock_merge_regions}(hj,>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(>ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj=hhhj>hMubj~)}(hL(struct memblock_type *type, unsigned long start_rgn, unsigned long end_rgn)h](j)}(hstruct memblock_type *typeh](jr)}(hjh]hstruct}(hjH>hhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhjD>ubj)}(h h]h }(hjU>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD>ubh)}(hhh]j)}(h memblock_typeh]h memblock_type}(hjf>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc>ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjh>modnameN classnameNjj)}j]j)}jj.>sbc.memblock_merge_regionsasbuh1hhjD>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD>ubjI!)}(hj$h]h*}(hj>hhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjD>ubj)}(htypeh]htype}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@>ubj)}(hunsigned long start_rgnh](jF)}(hunsignedh]hunsigned}(hj>hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjF)}(hlongh]hlong}(hj>hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h start_rgnh]h start_rgn}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@>ubj)}(hunsigned long end_rgnh](jF)}(hunsignedh]hunsigned}(hj ?hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubjF)}(hlongh]hlong}(hj'?hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj?ubj)}(h h]h }(hj5?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hend_rgnh]hend_rgn}(hjC?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@>ubeh}(h]h ]h"]h$]h&]jjuh1j}hj=hhhj>hMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhj=hhhj>hMubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1jehj>hMhj=hhubj)}(hhh]h)}(h$merge neighboring compatible regionsh]h$merge neighboring compatible regions}(hjm?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjj?hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj>hMubeh}(h]h ](hfunctioneh"]h$]h&]jhjj?jj?jjjuh1j`hhhj0hNhNubj)}(hX)**Parameters** ``struct memblock_type *type`` memblock type to scan ``unsigned long start_rgn`` start scanning from (**start_rgn** - 1) ``unsigned long end_rgn`` end scanning at (**end_rgn** - 1) Scan **type** and merge neighboring compatible regions in [**start_rgn** - 1, **end_rgn**)h](h)}(h**Parameters**h]j)}(hj?h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj?ubj)}(hhh](j)}(h5``struct memblock_type *type`` memblock type to scan h](j)}(h``struct memblock_type *type``h]h)}(hj?h]hstruct memblock_type *type}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj?ubj3)}(hhh]h)}(hmemblock type to scanh]hmemblock type to scan}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMhj?ubah}(h]h ]h"]h$]h&]uh1j2hj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhj?ubj)}(hD``unsigned long start_rgn`` start scanning from (**start_rgn** - 1) h](j)}(h``unsigned long start_rgn``h]h)}(hj?h]hunsigned long start_rgn}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj?ubj3)}(hhh]h)}(h'start scanning from (**start_rgn** - 1)h](hstart scanning from (}(hj@hhhNhNubj)}(h **start_rgn**h]h start_rgn}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh - 1)}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj?hMhj?ubah}(h]h ]h"]h$]h&]uh1j2hj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhj?ubj)}(h``unsigned long end_rgn`` end scanning at (**end_rgn** - 1) Scan **type** and merge neighboring compatible regions in [**start_rgn** - 1, **end_rgn**)h](j)}(h``unsigned long end_rgn``h]h)}(hj2@h]hunsigned long end_rgn}(hj4@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0@ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj,@ubj3)}(hhh]h)}(h|end scanning at (**end_rgn** - 1) Scan **type** and merge neighboring compatible regions in [**start_rgn** - 1, **end_rgn**)h](hend scanning at (}(hjK@hhhNhNubj)}(h **end_rgn**h]hend_rgn}(hjS@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK@ubh - 1) Scan }(hjK@hhhNhNubj)}(h**type**h]htype}(hje@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK@ubh. and merge neighboring compatible regions in [}(hjK@hhhNhNubj)}(h **start_rgn**h]h start_rgn}(hjw@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK@ubh - 1, }(hjK@hhhNhNubj)}(h **end_rgn**h]hend_rgn}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK@ubh)}(hjK@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjG@hMhjH@ubah}(h]h ]h"]h$]h&]uh1j2hj,@ubeh}(h]h ]h"]h$]h&]uh1jhjG@hMhj?ubeh}(h]h ]h"]h$]h&]uh1j hj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\#memblock_insert_region (C function)c.memblock_insert_regionhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hvoid __init_memblock memblock_insert_region (struct memblock_type *type, int idx, phys_addr_t base, phys_addr_t size, int nid, enum memblock_flags flags)h]jl)}(hvoid __init_memblock memblock_insert_region(struct memblock_type *type, int idx, phys_addr_t base, phys_addr_t size, int nid, enum memblock_flags flags)h](jF)}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj@hhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM'ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhj@hM'ubh__init_memblock}(hj@hhhNhNubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhj@hM'ubj)}(hmemblock_insert_regionh]j)}(hmemblock_insert_regionh]hmemblock_insert_region}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jhj@hhhj@hM'ubj~)}(hm(struct memblock_type *type, int idx, phys_addr_t base, phys_addr_t size, int nid, enum memblock_flags flags)h](j)}(hstruct memblock_type *typeh](jr)}(hjh]hstruct}(hj"AhhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhjAubj)}(h h]h }(hj/AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubh)}(hhh]j)}(h memblock_typeh]h memblock_type}(hj@AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Aubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjBAmodnameN classnameNjj)}j]j)}jjAsbc.memblock_insert_regionasbuh1hhjAubj)}(h h]h }(hj`AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjI!)}(hj$h]h*}(hjnAhhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjAubj)}(htypeh]htype}(hj{AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hint idxh](jF)}(hinth]hint}(hjAhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hidxh]hidx}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hphys_addr_t baseh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjAmodnameN classnameNjj)}j]j\Ac.memblock_insert_regionasbuh1hhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hbaseh]hbase}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjBmodnameN classnameNjj)}j]j\Ac.memblock_insert_regionasbuh1hhj Bubj)}(h h]h }(hj2BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Bubj)}(hsizeh]hsize}(hj@BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Bubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hint nidh](jF)}(hinth]hint}(hjYBhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjUBubj)}(h h]h }(hjgBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUBubj)}(hnidh]hnid}(hjuBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(henum memblock_flags flagsh](jr)}(hjuh]henum}(hjBhhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]j)}(hmemblock_flagsh]hmemblock_flags}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjBmodnameN classnameNjj)}j]j\Ac.memblock_insert_regionasbuh1hhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hflagsh]hflags}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubeh}(h]h ]h"]h$]h&]jjuh1j}hj@hhhj@hM'ubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhj@hhhj@hM'ubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1jehj@hM'hj@hhubj)}(hhh]h)}(hinsert new memblock regionh]hinsert new memblock region}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjBhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhj@hM'ubeh}(h]h ](hfunctioneh"]h$]h&]jhjjCjjCjjjuh1j`hhhj0hNhNubj)}(hX**Parameters** ``struct memblock_type *type`` memblock type to insert into ``int idx`` index for the insertion point ``phys_addr_t base`` base address of the new region ``phys_addr_t size`` size of the new region ``int nid`` node id of the new region ``enum memblock_flags flags`` flags of the new region **Description** Insert new memblock region [**base**, **base** + **size**) into **type** at **idx**. **type** must already have extra room to accommodate the new region.h](h)}(h**Parameters**h]j)}(hj$Ch]h Parameters}(hj&ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"Cubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM hjCubj)}(hhh](j)}(h<``struct memblock_type *type`` memblock type to insert into h](j)}(h``struct memblock_type *type``h]h)}(hjCCh]hstruct memblock_type *type}(hjEChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjACubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj=Cubj3)}(hhh]h)}(hmemblock type to insert intoh]hmemblock type to insert into}(hj\ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXChMhjYCubah}(h]h ]h"]h$]h&]uh1j2hj=Cubeh}(h]h ]h"]h$]h&]uh1jhjXChMhj:Cubj)}(h*``int idx`` index for the insertion point h](j)}(h ``int idx``h]h)}(hj|Ch]hint idx}(hj~ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzCubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjvCubj3)}(hhh]h)}(hindex for the insertion pointh]hindex for the insertion point}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjCubah}(h]h ]h"]h$]h&]uh1j2hjvCubeh}(h]h ]h"]h$]h&]uh1jhjChMhj:Cubj)}(h4``phys_addr_t base`` base address of the new region h](j)}(h``phys_addr_t base``h]h)}(hjCh]hphys_addr_t base}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjCubj3)}(hhh]h)}(hbase address of the new regionh]hbase address of the new region}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjCubah}(h]h ]h"]h$]h&]uh1j2hjCubeh}(h]h ]h"]h$]h&]uh1jhjChMhj:Cubj)}(h,``phys_addr_t size`` size of the new region h](j)}(h``phys_addr_t size``h]h)}(hjCh]hphys_addr_t size}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM hjCubj3)}(hhh]h)}(hsize of the new regionh]hsize of the new region}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM hjDubah}(h]h ]h"]h$]h&]uh1j2hjCubeh}(h]h ]h"]h$]h&]uh1jhjDhM hj:Cubj)}(h&``int nid`` node id of the new region h](j)}(h ``int nid``h]h)}(hj'Dh]hint nid}(hj)DhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%Dubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM!hj!Dubj3)}(hhh]h)}(hnode id of the new regionh]hnode id of the new region}(hj@DhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhjbGubj)}(hhh](j)}(hD``struct memblock_type *type`` memblock type to add new region into h](j)}(h``struct memblock_type *type``h]h)}(hjGh]hstruct memblock_type *type}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM;hjGubj3)}(hhh]h)}(h$memblock type to add new region intoh]h$memblock type to add new region into}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM;hjGubah}(h]h ]h"]h$]h&]uh1j2hjGubeh}(h]h ]h"]h$]h&]uh1jhjGhM;hj~Gubj)}(h4``phys_addr_t base`` base address of the new region h](j)}(h``phys_addr_t base``h]h)}(hjGh]hphys_addr_t base}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM<hjGubj3)}(hhh]h)}(hbase address of the new regionh]hbase address of the new region}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM<hjGubah}(h]h ]h"]h$]h&]uh1j2hjGubeh}(h]h ]h"]h$]h&]uh1jhjGhM<hj~Gubj)}(h,``phys_addr_t size`` size of the new region h](j)}(h``phys_addr_t size``h]h)}(hjGh]hphys_addr_t size}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM=hjGubj3)}(hhh]h)}(hsize of the new regionh]hsize of the new region}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhM=hjHubah}(h]h ]h"]h$]h&]uh1j2hjGubeh}(h]h ]h"]h$]h&]uh1jhjHhM=hj~Gubj)}(h"``int nid`` nid of the new region h](j)}(h ``int nid``h]h)}(hj2Hh]hint nid}(hj4HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0Hubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM>hj,Hubj3)}(hhh]h)}(hnid of the new regionh]hnid of the new region}(hjKHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGHhM>hjHHubah}(h]h ]h"]h$]h&]uh1j2hj,Hubeh}(h]h ]h"]h$]h&]uh1jhjGHhM>hj~Gubj)}(h6``enum memblock_flags flags`` flags of the new region h](j)}(h``enum memblock_flags flags``h]h)}(hjkHh]henum memblock_flags flags}(hjmHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjiHubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM?hjeHubj3)}(hhh]h)}(hflags of the new regionh]hflags of the new region}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhM?hjHubah}(h]h ]h"]h$]h&]uh1j2hjeHubeh}(h]h ]h"]h$]h&]uh1jhjHhM?hj~Gubeh}(h]h ]h"]h$]h&]uh1j hjbGubh)}(h**Description**h]j)}(hjHh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMAhjbGubh)}(hXAdd new memblock region [**base**, **base** + **size**) into **type**. The new region is allowed to overlap with existing ones - overlaps don't affect already existing regions. **type** is guaranteed to be minimal (all neighbouring compatible regions are merged) after the addition.h](hAdd new memblock region [}(hjHhhhNhNubj)}(h**base**h]hbase}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh, }(hjHhhhNhNubj)}(h**base**h]hbase}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh + }(hjHhhhNhNubj)}(h**size**h]hsize}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh) into }(hjHhhhNhNubj)}(h**type**h]htype}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubhp. The new region is allowed to overlap with existing ones - overlaps don’t affect already existing regions. }(hjHhhhNhNubj)}(h**type**h]htype}(hj IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubha is guaranteed to be minimal (all neighbouring compatible regions are merged) after the addition.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMAhjbGubh)}(h **Return**h]j)}(hj'Ih]hReturn}(hj)IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%Iubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMFhjbGubh)}(h 0 on success, -errno on failure.h]h 0 on success, -errno on failure.}(hj=IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMFhjbGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\memblock_add_node (C function)c.memblock_add_nodehNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hnint __init_memblock memblock_add_node (phys_addr_t base, phys_addr_t size, int nid, enum memblock_flags flags)h]jl)}(hmint __init_memblock memblock_add_node(phys_addr_t base, phys_addr_t size, int nid, enum memblock_flags flags)h](jF)}(hinth]hint}(hjlIhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjhIhhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMubj)}(h h]h }(hj{IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhIhhhjzIhMubh__init_memblock}(hjhIhhhNhNubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhIhhhjzIhMubj)}(hmemblock_add_nodeh]j)}(hmemblock_add_nodeh]hmemblock_add_node}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhIhhhjzIhMubj~)}(hH(phys_addr_t base, phys_addr_t size, int nid, enum memblock_flags flags)h](j)}(hphys_addr_t baseh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjImodnameN classnameNjj)}j]j)}jjIsbc.memblock_add_nodeasbuh1hhjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hbaseh]hbase}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj JmodnameN classnameNjj)}j]jIc.memblock_add_nodeasbuh1hhjJubj)}(h h]h }(hj&JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hsizeh]hsize}(hj4JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(hint nidh](jF)}(hinth]hint}(hjMJhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjIJubj)}(h h]h }(hj[JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIJubj)}(hnidh]hnid}(hjiJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(henum memblock_flags flagsh](jr)}(hjuh]henum}(hjJhhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhj~Jubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Jubh)}(hhh]j)}(hmemblock_flagsh]hmemblock_flags}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjJmodnameN classnameNjj)}j]jIc.memblock_add_nodeasbuh1hhj~Jubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Jubj)}(hflagsh]hflags}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Jubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubeh}(h]h ]h"]h$]h&]jjuh1j}hjhIhhhjzIhMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjdIhhhjzIhMubah}(h]j_Iah ](jjeh"]h$]h&]jj)jhuh1jehjzIhMhjaIhhubj)}(hhh]h)}(h*add new memblock region within a NUMA nodeh]h*add new memblock region within a NUMA node}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjJhhubah}(h]h ]h"]h$]h&]uh1jhjaIhhhjzIhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjKjjKjjjuh1j`hhhj0hNhNubj)}(hX**Parameters** ``phys_addr_t base`` base address of the new region ``phys_addr_t size`` size of the new region ``int nid`` nid of the new region ``enum memblock_flags flags`` flags of the new region **Description** Add new memblock region [**base**, **base** + **size**) to the "memory" type. See memblock_add_range() description for mode details **Return** 0 on success, -errno on failure.h](h)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjKubj)}(hhh](j)}(h4``phys_addr_t base`` base address of the new region h](j)}(h``phys_addr_t base``h]h)}(hj7Kh]hphys_addr_t base}(hj9KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5Kubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj1Kubj3)}(hhh]h)}(hbase address of the new regionh]hbase address of the new region}(hjPKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLKhMhjMKubah}(h]h ]h"]h$]h&]uh1j2hj1Kubeh}(h]h ]h"]h$]h&]uh1jhjLKhMhj.Kubj)}(h,``phys_addr_t size`` size of the new region h](j)}(h``phys_addr_t size``h]h)}(hjpKh]hphys_addr_t size}(hjrKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnKubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjjKubj3)}(hhh]h)}(hsize of the new regionh]hsize of the new region}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1j2hjjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhj.Kubj)}(h"``int nid`` nid of the new region h](j)}(h ``int nid``h]h)}(hjKh]hint nid}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjKubj3)}(hhh]h)}(hnid of the new regionh]hnid of the new region}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1j2hjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhj.Kubj)}(h6``enum memblock_flags flags`` flags of the new region h](j)}(h``enum memblock_flags flags``h]h)}(hjKh]henum memblock_flags flags}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjKubj3)}(hhh]h)}(hflags of the new regionh]hflags of the new region}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1j2hjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhj.Kubeh}(h]h ]h"]h$]h&]uh1j hjKubh)}(h**Description**h]j)}(hjLh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjKubh)}(hAdd new memblock region [**base**, **base** + **size**) to the "memory" type. See memblock_add_range() description for mode detailsh](hAdd new memblock region [}(hj3LhhhNhNubj)}(h**base**h]hbase}(hj;LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Lubh, }(hj3LhhhNhNubj)}(h**base**h]hbase}(hjMLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Lubh + }(hj3LhhhNhNubj)}(h**size**h]hsize}(hj_LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3LubhQ) to the “memory” type. See memblock_add_range() description for mode details}(hj3LhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjKubh)}(h **Return**h]j)}(hjzLh]hReturn}(hj|LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxLubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjKubh)}(h 0 on success, -errno on failure.h]h 0 on success, -errno on failure.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\memblock_add (C function)c.memblock_addhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hEint __init_memblock memblock_add (phys_addr_t base, phys_addr_t size)h]jl)}(hDint __init_memblock memblock_add(phys_addr_t base, phys_addr_t size)h](jF)}(hinth]hint}(hjLhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjLhhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhjLhMubh__init_memblock}(hjLhhhNhNubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhjLhMubj)}(h memblock_addh]j)}(h memblock_addh]h memblock_add}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jhjLhhhjLhMubj~)}(h$(phys_addr_t base, phys_addr_t size)h](j)}(hphys_addr_t baseh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjMmodnameN classnameNjj)}j]j)}jjLsbc.memblock_addasbuh1hhj Mubj)}(h h]h }(hj1MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Mubj)}(hbaseh]hbase}(hj?MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Mubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj[MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXMubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj]MmodnameN classnameNjj)}j]j-Mc.memblock_addasbuh1hhjTMubj)}(h h]h }(hjyMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTMubj)}(hsizeh]hsize}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubeh}(h]h ]h"]h$]h&]jjuh1j}hjLhhhjLhMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjLhhhjLhMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1jehjLhMhjLhhubj)}(hhh]h)}(hadd new memblock regionh]hadd new memblock region}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjMhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjLhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjMjjMjjjuh1j`hhhj0hNhNubj)}(hX8**Parameters** ``phys_addr_t base`` base address of the new region ``phys_addr_t size`` size of the new region **Description** Add new memblock region [**base**, **base** + **size**) to the "memory" type. See memblock_add_range() description for mode details **Return** 0 on success, -errno on failure.h](h)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjMubj)}(hhh](j)}(h4``phys_addr_t base`` base address of the new region h](j)}(h``phys_addr_t base``h]h)}(hjMh]hphys_addr_t base}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjMubj3)}(hhh]h)}(hbase address of the new regionh]hbase address of the new region}(hj NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhjNubah}(h]h ]h"]h$]h&]uh1j2hjMubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjMubj)}(h,``phys_addr_t size`` size of the new region h](j)}(h``phys_addr_t size``h]h)}(hj+Nh]hphys_addr_t size}(hj-NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)Nubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj%Nubj3)}(hhh]h)}(hsize of the new regionh]hsize of the new region}(hjDNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@NhMhjANubah}(h]h ]h"]h$]h&]uh1j2hj%Nubeh}(h]h ]h"]h$]h&]uh1jhj@NhMhjMubeh}(h]h ]h"]h$]h&]uh1j hjMubh)}(h**Description**h]j)}(hjfNh]h Description}(hjhNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjMubh)}(hAdd new memblock region [**base**, **base** + **size**) to the "memory" type. See memblock_add_range() description for mode detailsh](hAdd new memblock region [}(hj|NhhhNhNubj)}(h**base**h]hbase}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|Nubh, }(hj|NhhhNhNubj)}(h**base**h]hbase}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|Nubh + }(hj|NhhhNhNubj)}(h**size**h]hsize}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|NubhQ) to the “memory” type. See memblock_add_range() description for mode details}(hj|NhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjMubh)}(h **Return**h]j)}(hjNh]hReturn}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjMubh)}(h 0 on success, -errno on failure.h]h 0 on success, -errno on failure.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\,memblock_validate_numa_coverage (C function)!c.memblock_validate_numa_coveragehNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hTbool __init_memblock memblock_validate_numa_coverage (unsigned long threshold_bytes)h]jl)}(hSbool __init_memblock memblock_validate_numa_coverage(unsigned long threshold_bytes)h](jF)}(hboolh]hbool}(hjOhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjOhhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhjOhMubh__init_memblock}(hjOhhhNhNubj)}(h h]h }(hj)OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhjOhMubj)}(hmemblock_validate_numa_coverageh]j)}(hmemblock_validate_numa_coverageh]hmemblock_validate_numa_coverage}(hj;OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7Oubah}(h]h ](jjeh"]h$]h&]jjuh1jhjOhhhjOhMubj~)}(h(unsigned long threshold_bytes)h]j)}(hunsigned long threshold_bytesh](jF)}(hunsignedh]hunsigned}(hjWOhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjSOubj)}(h h]h }(hjeOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSOubjF)}(hlongh]hlong}(hjsOhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjSOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSOubj)}(hthreshold_bytesh]hthreshold_bytes}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOOubah}(h]h ]h"]h$]h&]jjuh1j}hjOhhhjOhMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjOhhhjOhMubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1jehjOhMhjNhhubj)}(hhh]h)}(hKcheck if amount of memory with no node ID assigned is less than a thresholdh]hKcheck if amount of memory with no node ID assigned is less than a threshold}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjOhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjOhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjOjjOjjjuh1j`hhhj0hNhNubj)}(hX:**Parameters** ``unsigned long threshold_bytes`` maximal memory size that can have unassigned node ID (in bytes). **Description** A buggy firmware may report memory that does not belong to any node. Check if amount of such memory is below **threshold_bytes**. **Return** true on success, false on failure.h](h)}(h**Parameters**h]j)}(hjOh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjOubj)}(hhh]j)}(hc``unsigned long threshold_bytes`` maximal memory size that can have unassigned node ID (in bytes). h](j)}(h!``unsigned long threshold_bytes``h]h)}(hjOh]hunsigned long threshold_bytes}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjOubj3)}(hhh]h)}(h@maximal memory size that can have unassigned node ID (in bytes).h]h@maximal memory size that can have unassigned node ID (in bytes).}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjPubah}(h]h ]h"]h$]h&]uh1j2hjOubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjOubah}(h]h ]h"]h$]h&]uh1j hjOubh)}(h**Description**h]j)}(hj6Ph]h Description}(hj8PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4Pubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjOubh)}(hA buggy firmware may report memory that does not belong to any node. Check if amount of such memory is below **threshold_bytes**.h](hmA buggy firmware may report memory that does not belong to any node. Check if amount of such memory is below }(hjLPhhhNhNubj)}(h**threshold_bytes**h]hthreshold_bytes}(hjTPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLPubh.}(hjLPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjOubh)}(h **Return**h]j)}(hjoPh]hReturn}(hjqPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmPubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjOubh)}(h"true on success, false on failure.h]h"true on success, false on failure.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\#memblock_isolate_range (C function)c.memblock_isolate_rangehNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hint __init_memblock memblock_isolate_range (struct memblock_type *type, phys_addr_t base, phys_addr_t size, int *start_rgn, int *end_rgn)h]jl)}(hint __init_memblock memblock_isolate_range(struct memblock_type *type, phys_addr_t base, phys_addr_t size, int *start_rgn, int *end_rgn)h](jF)}(hinth]hint}(hjPhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjPhhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjPhMubh__init_memblock}(hjPhhhNhNubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjPhMubj)}(hmemblock_isolate_rangeh]j)}(hmemblock_isolate_rangeh]hmemblock_isolate_range}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jhjPhhhjPhMubj~)}(h^(struct memblock_type *type, phys_addr_t base, phys_addr_t size, int *start_rgn, int *end_rgn)h](j)}(hstruct memblock_type *typeh](jr)}(hjh]hstruct}(hjQhhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhjPubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hhh]j)}(h memblock_typeh]h memblock_type}(hj!QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj#QmodnameN classnameNjj)}j]j)}jjPsbc.memblock_isolate_rangeasbuh1hhjPubj)}(h h]h }(hjAQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjI!)}(hj$h]h*}(hjOQhhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjPubj)}(htypeh]htype}(hj\QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(hphys_addr_t baseh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjxQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuQubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjzQmodnameN classnameNjj)}j]j=Qc.memblock_isolate_rangeasbuh1hhjqQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqQubj)}(hbaseh]hbase}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjQmodnameN classnameNjj)}j]j=Qc.memblock_isolate_rangeasbuh1hhjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hsizeh]hsize}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(hint *start_rgnh](jF)}(hinth]hint}(hjRhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjI!)}(hj$h]h*}(hj!RhhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjRubj)}(h start_rgnh]h start_rgn}(hj.RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(h int *end_rgnh](jF)}(hinth]hint}(hjGRhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjCRubj)}(h h]h }(hjURhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCRubjI!)}(hj$h]h*}(hjcRhhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjCRubj)}(hend_rgnh]hend_rgn}(hjpRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubeh}(h]h ]h"]h$]h&]jjuh1j}hjPhhhjPhMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjPhhhjPhMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1jehjPhMhjPhhubj)}(hhh]h)}(h+isolate given range into disjoint memblocksh]h+isolate given range into disjoint memblocks}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjRhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjPhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjRjjRjjjuh1j`hhhj0hNhNubj)}(hX**Parameters** ``struct memblock_type *type`` memblock type to isolate range for ``phys_addr_t base`` base of range to isolate ``phys_addr_t size`` size of range to isolate ``int *start_rgn`` out parameter for the start of isolated region ``int *end_rgn`` out parameter for the end of isolated region **Description** Walk **type** and ensure that regions don't cross the boundaries defined by [**base**, **base** + **size**). Crossing regions are split at the boundaries, which may create at most two more regions. The index of the first region inside the range is returned in ***start_rgn** and the index of the first region after the range is returned in ***end_rgn**. **Return** 0 on success, -errno on failure.h](h)}(h**Parameters**h]j)}(hjRh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjRubj)}(hhh](j)}(hB``struct memblock_type *type`` memblock type to isolate range for h](j)}(h``struct memblock_type *type``h]h)}(hjRh]hstruct memblock_type *type}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjRubj3)}(hhh]h)}(h"memblock type to isolate range forh]h"memblock type to isolate range for}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjRubah}(h]h ]h"]h$]h&]uh1j2hjRubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjRubj)}(h.``phys_addr_t base`` base of range to isolate h](j)}(h``phys_addr_t base``h]h)}(hjSh]hphys_addr_t base}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjSubj3)}(hhh]h)}(hbase of range to isolateh]hbase of range to isolate}(hj-ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)ShMhj*Subah}(h]h ]h"]h$]h&]uh1j2hjSubeh}(h]h ]h"]h$]h&]uh1jhj)ShMhjRubj)}(h.``phys_addr_t size`` size of range to isolate h](j)}(h``phys_addr_t size``h]h)}(hjMSh]hphys_addr_t size}(hjOShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKSubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjGSubj3)}(hhh]h)}(hsize of range to isolateh]hsize of range to isolate}(hjfShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbShMhjcSubah}(h]h ]h"]h$]h&]uh1j2hjGSubeh}(h]h ]h"]h$]h&]uh1jhjbShMhjRubj)}(hB``int *start_rgn`` out parameter for the start of isolated region h](j)}(h``int *start_rgn``h]h)}(hjSh]hint *start_rgn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjSubj3)}(hhh]h)}(h.out parameter for the start of isolated regionh]h.out parameter for the start of isolated region}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjSubah}(h]h ]h"]h$]h&]uh1j2hjSubeh}(h]h ]h"]h$]h&]uh1jhjShMhjRubj)}(h>``int *end_rgn`` out parameter for the end of isolated region h](j)}(h``int *end_rgn``h]h)}(hjSh]h int *end_rgn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjSubj3)}(hhh]h)}(h,out parameter for the end of isolated regionh]h,out parameter for the end of isolated region}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjSubah}(h]h ]h"]h$]h&]uh1j2hjSubeh}(h]h ]h"]h$]h&]uh1jhjShMhjRubeh}(h]h ]h"]h$]h&]uh1j hjRubh)}(h**Description**h]j)}(hjSh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM hjRubh)}(hXcWalk **type** and ensure that regions don't cross the boundaries defined by [**base**, **base** + **size**). Crossing regions are split at the boundaries, which may create at most two more regions. The index of the first region inside the range is returned in ***start_rgn** and the index of the first region after the range is returned in ***end_rgn**.h](hWalk }(hjThhhNhNubj)}(h**type**h]htype}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubhB and ensure that regions don’t cross the boundaries defined by [}(hjThhhNhNubj)}(h**base**h]hbase}(hj*ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh, }(hjThhhNhNubj)}(h**base**h]hbase}(hj``void *ptr`` starting address of the boot memory allocation h](j)}(h ``void *ptr``h]h)}(hjUh]h void *ptr}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMjhjUubj3)}(hhh]h)}(h/starting address of the boot memory allocationh]h/starting address of the boot memory allocation}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMjhjVubah}(h]h ]h"]h$]h&]uh1j2hjUubeh}(h]h ]h"]h$]h&]uh1jhjVhMjhjUubj)}(h7``size_t size`` size of the boot memory block in bytes h](j)}(h``size_t size``h]h)}(hj8Vh]h size_t size}(hj:VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6Vubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMkhj2Vubj3)}(hhh]h)}(h&size of the boot memory block in bytesh]h&size of the boot memory block in bytes}(hjQVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMVhMkhjNVubah}(h]h ]h"]h$]h&]uh1j2hj2Vubeh}(h]h ]h"]h$]h&]uh1jhjMVhMkhjUubeh}(h]h ]h"]h$]h&]uh1j hjUubh)}(h**Description**h]j)}(hjsVh]h Description}(hjuVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqVubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMmhjUubh)}(hFree boot memory block previously allocated by memblock_alloc_xx() API. The freeing memory will not be released to the buddy allocator.h]hFree boot memory block previously allocated by memblock_alloc_xx() API. The freeing memory will not be released to the buddy allocator.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMmhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\memblock_phys_free (C function)c.memblock_phys_freehNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hKint __init_memblock memblock_phys_free (phys_addr_t base, phys_addr_t size)h]jl)}(hJint __init_memblock memblock_phys_free(phys_addr_t base, phys_addr_t size)h](jF)}(hinth]hint}(hjVhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjVhhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM~ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjVhM~ubh__init_memblock}(hjVhhhNhNubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjVhM~ubj)}(hmemblock_phys_freeh]j)}(hmemblock_phys_freeh]hmemblock_phys_free}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jhjVhhhjVhM~ubj~)}(h$(phys_addr_t base, phys_addr_t size)h](j)}(hphys_addr_t baseh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj WmodnameN classnameNjj)}j]j)}jjVsbc.memblock_phys_freeasbuh1hhjWubj)}(h h]h }(hj*WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hbaseh]hbase}(hj8WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjTWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQWubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjVWmodnameN classnameNjj)}j]j&Wc.memblock_phys_freeasbuh1hhjMWubj)}(h h]h }(hjrWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMWubj)}(hsizeh]hsize}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1j}hjVhhhjVhM~ubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjVhhhjVhM~ubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1jehjVhM~hjVhhubj)}(hhh]h)}(hfree boot memory blockh]hfree boot memory block}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMwhjWhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjVhM~ubeh}(h]h ](hfunctioneh"]h$]h&]jhjjWjjWjjjuh1j`hhhj0hNhNubj)}(hX4**Parameters** ``phys_addr_t base`` phys starting address of the boot memory block ``phys_addr_t size`` size of the boot memory block in bytes **Description** Free boot memory block previously allocated by memblock_phys_alloc_xx() API. The freeing memory will not be released to the buddy allocator.h](h)}(h**Parameters**h]j)}(hjWh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM{hjWubj)}(hhh](j)}(hE``phys_addr_t base`` phys starting address of the boot memory block h](j)}(h``phys_addr_t base``h]h)}(hjWh]hphys_addr_t base}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMxhjWubj3)}(hhh]h)}(h/phys starting address of the boot memory blockh]h/phys starting address of the boot memory block}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMxhjXubah}(h]h ]h"]h$]h&]uh1j2hjWubeh}(h]h ]h"]h$]h&]uh1jhjXhMxhjWubj)}(h<``phys_addr_t size`` size of the boot memory block in bytes h](j)}(h``phys_addr_t size``h]h)}(hj$Xh]hphys_addr_t size}(hj&XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"Xubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMyhjXubj3)}(hhh]h)}(h&size of the boot memory block in bytesh]h&size of the boot memory block in bytes}(hj=XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9XhMyhj:Xubah}(h]h ]h"]h$]h&]uh1j2hjXubeh}(h]h ]h"]h$]h&]uh1jhj9XhMyhjWubeh}(h]h ]h"]h$]h&]uh1j hjWubh)}(h**Description**h]j)}(hj_Xh]h Description}(hjaXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]Xubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM{hjWubh)}(hFree boot memory block previously allocated by memblock_phys_alloc_xx() API. The freeing memory will not be released to the buddy allocator.h]hFree boot memory block previously allocated by memblock_phys_alloc_xx() API. The freeing memory will not be released to the buddy allocator.}(hjuXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM{hjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\!memblock_setclr_flag (C function)c.memblock_setclr_flaghNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(h|int __init_memblock memblock_setclr_flag (struct memblock_type *type, phys_addr_t base, phys_addr_t size, int set, int flag)h]jl)}(h{int __init_memblock memblock_setclr_flag(struct memblock_type *type, phys_addr_t base, phys_addr_t size, int set, int flag)h](jF)}(hinth]hint}(hjXhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjXhhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhjXhMubh__init_memblock}(hjXhhhNhNubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhjXhMubj)}(hmemblock_setclr_flagh]j)}(hmemblock_setclr_flagh]hmemblock_setclr_flag}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jhjXhhhjXhMubj~)}(hS(struct memblock_type *type, phys_addr_t base, phys_addr_t size, int set, int flag)h](j)}(hstruct memblock_type *typeh](jr)}(hjh]hstruct}(hjXhhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhjXubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubh)}(hhh]j)}(h memblock_typeh]h memblock_type}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjYmodnameN classnameNjj)}j]j)}jjXsbc.memblock_setclr_flagasbuh1hhjXubj)}(h h]h }(hj1YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjI!)}(hj$h]h*}(hj?YhhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjXubj)}(htypeh]htype}(hjLYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hphys_addr_t baseh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjhYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeYubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjjYmodnameN classnameNjj)}j]j-Yc.memblock_setclr_flagasbuh1hhjaYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaYubj)}(hbaseh]hbase}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjYmodnameN classnameNjj)}j]j-Yc.memblock_setclr_flagasbuh1hhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hsizeh]hsize}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hint seth](jF)}(hinth]hint}(hjYhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjYubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hseth]hset}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hint flagh](jF)}(hinth]hint}(hj*ZhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj&Zubj)}(h h]h }(hj8ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&Zubj)}(hflagh]hflag}(hjFZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&Zubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubeh}(h]h ]h"]h$]h&]jjuh1j}hjXhhhjXhMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjXhhhjXhMubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1jehjXhMhjXhhubj)}(hhh]h)}(h%set or clear flag for a memory regionh]h%set or clear flag for a memory region}(hjpZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjmZhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjXhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjZjjZjjjuh1j`hhhj0hNhNubj)}(hX**Parameters** ``struct memblock_type *type`` memblock type to set/clear flag for ``phys_addr_t base`` base address of the region ``phys_addr_t size`` size of the region ``int set`` set or clear the flag ``int flag`` the flag to update **Description** This function isolates region [**base**, **base** + **size**), and sets/clears flag **Return** 0 on success, -errno on failure.h](h)}(h**Parameters**h]j)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjZubj)}(hhh](j)}(hC``struct memblock_type *type`` memblock type to set/clear flag for h](j)}(h``struct memblock_type *type``h]h)}(hjZh]hstruct memblock_type *type}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjZubj3)}(hhh]h)}(h#memblock type to set/clear flag forh]h#memblock type to set/clear flag for}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhjZubah}(h]h ]h"]h$]h&]uh1j2hjZubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjZubj)}(h0``phys_addr_t base`` base address of the region h](j)}(h``phys_addr_t base``h]h)}(hjZh]hphys_addr_t base}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjZubj3)}(hhh]h)}(hbase address of the regionh]hbase address of the region}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1j2hjZubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjZubj)}(h(``phys_addr_t size`` size of the region h](j)}(h``phys_addr_t size``h]h)}(hj#[h]hphys_addr_t size}(hj%[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj![ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj[ubj3)}(hhh]h)}(hsize of the regionh]hsize of the region}(hj<[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8[hMhj9[ubah}(h]h ]h"]h$]h&]uh1j2hj[ubeh}(h]h ]h"]h$]h&]uh1jhj8[hMhjZubj)}(h"``int set`` set or clear the flag h](j)}(h ``int set``h]h)}(hj\[h]hint set}(hj^[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZ[ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjV[ubj3)}(hhh]h)}(hset or clear the flagh]hset or clear the flag}(hju[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjq[hMhjr[ubah}(h]h ]h"]h$]h&]uh1j2hjV[ubeh}(h]h ]h"]h$]h&]uh1jhjq[hMhjZubj)}(h ``int flag`` the flag to update h](j)}(h ``int flag``h]h)}(hj[h]hint flag}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj[ubj3)}(hhh]h)}(hthe flag to updateh]hthe flag to update}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMhj[ubah}(h]h ]h"]h$]h&]uh1j2hj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhjZubeh}(h]h ]h"]h$]h&]uh1j hjZubh)}(h**Description**h]j)}(hj[h]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjZubh)}(hSThis function isolates region [**base**, **base** + **size**), and sets/clears flagh](hThis function isolates region [}(hj[hhhNhNubj)}(h**base**h]hbase}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh, }(hj[hhhNhNubj)}(h**base**h]hbase}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh + }(hj[hhhNhNubj)}(h**size**h]hsize}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh), and sets/clears flag}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjZubh)}(h **Return**h]j)}(hj-\h]hReturn}(hj/\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+\ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjZubh)}(h 0 on success, -errno on failure.h]h 0 on success, -errno on failure.}(hjC\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\"memblock_mark_hotplug (C function)c.memblock_mark_hotplughNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hNint __init_memblock memblock_mark_hotplug (phys_addr_t base, phys_addr_t size)h]jl)}(hMint __init_memblock memblock_mark_hotplug(phys_addr_t base, phys_addr_t size)h](jF)}(hinth]hint}(hjr\hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjn\hhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn\hhhj\hMubh__init_memblock}(hjn\hhhNhNubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn\hhhj\hMubj)}(hmemblock_mark_hotplugh]j)}(hmemblock_mark_hotplugh]hmemblock_mark_hotplug}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjn\hhhj\hMubj~)}(h$(phys_addr_t base, phys_addr_t size)h](j)}(hphys_addr_t baseh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj\modnameN classnameNjj)}j]j)}jj\sbc.memblock_mark_hotplugasbuh1hhj\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hbaseh]hbase}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ]ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj]modnameN classnameNjj)}j]j\c.memblock_mark_hotplugasbuh1hhj]ubj)}(h h]h }(hj,]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hsizeh]hsize}(hj:]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubeh}(h]h ]h"]h$]h&]jjuh1j}hjn\hhhj\hMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjj\hhhj\hMubah}(h]je\ah ](jjeh"]h$]h&]jj)jhuh1jehj\hMhjg\hhubj)}(hhh]h)}(h4Mark hotpluggable memory with flag MEMBLOCK_HOTPLUG.h]h4Mark hotpluggable memory with flag MEMBLOCK_HOTPLUG.}(hjd]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhja]hhubah}(h]h ]h"]h$]h&]uh1jhjg\hhhj\hMubeh}(h]h ](hfunctioneh"]h$]h&]jhjj|]jj|]jjjuh1j`hhhj0hNhNubj)}(h**Parameters** ``phys_addr_t base`` the base phys addr of the region ``phys_addr_t size`` the size of the region **Return** 0 on success, -errno on failure.h](h)}(h**Parameters**h]j)}(hj]h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj]ubj)}(hhh](j)}(h6``phys_addr_t base`` the base phys addr of the region h](j)}(h``phys_addr_t base``h]h)}(hj]h]hphys_addr_t base}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj]ubj3)}(hhh]h)}(h the base phys addr of the regionh]h the base phys addr of the region}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1j2hj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj]ubj)}(h,``phys_addr_t size`` the size of the region h](j)}(h``phys_addr_t size``h]h)}(hj]h]hphys_addr_t size}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj]ubj3)}(hhh]h)}(hthe size of the regionh]hthe size of the region}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1j2hj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj]ubeh}(h]h ]h"]h$]h&]uh1j hj]ubh)}(h **Return**h]j)}(hj^h]hReturn}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj]ubh)}(h 0 on success, -errno on failure.h]h 0 on success, -errno on failure.}(hj/^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\#memblock_clear_hotplug (C function)c.memblock_clear_hotplughNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hOint __init_memblock memblock_clear_hotplug (phys_addr_t base, phys_addr_t size)h]jl)}(hNint __init_memblock memblock_clear_hotplug(phys_addr_t base, phys_addr_t size)h](jF)}(hinth]hint}(hj^^hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjZ^hhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMubj)}(h h]h }(hjm^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ^hhhjl^hMubh__init_memblock}(hjZ^hhhNhNubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ^hhhjl^hMubj)}(hmemblock_clear_hotplugh]j)}(hmemblock_clear_hotplugh]hmemblock_clear_hotplug}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjZ^hhhjl^hMubj~)}(h$(phys_addr_t base, phys_addr_t size)h](j)}(hphys_addr_t baseh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj^modnameN classnameNjj)}j]j)}jj^sbc.memblock_clear_hotplugasbuh1hhj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hbaseh]hbase}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj^modnameN classnameNjj)}j]j^c.memblock_clear_hotplugasbuh1hhj^ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hsizeh]hsize}(hj&_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubeh}(h]h ]h"]h$]h&]jjuh1j}hjZ^hhhjl^hMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjV^hhhjl^hMubah}(h]jQ^ah ](jjeh"]h$]h&]jj)jhuh1jehjl^hMhjS^hhubj)}(hhh]h)}(h3Clear flag MEMBLOCK_HOTPLUG for a specified region.h]h3Clear flag MEMBLOCK_HOTPLUG for a specified region.}(hjP_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjM_hhubah}(h]h ]h"]h$]h&]uh1jhjS^hhhjl^hMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjh_jjh_jjjuh1j`hhhj0hNhNubj)}(h**Parameters** ``phys_addr_t base`` the base phys addr of the region ``phys_addr_t size`` the size of the region **Return** 0 on success, -errno on failure.h](h)}(h**Parameters**h]j)}(hjr_h]h Parameters}(hjt_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp_ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjl_ubj)}(hhh](j)}(h6``phys_addr_t base`` the base phys addr of the region h](j)}(h``phys_addr_t base``h]h)}(hj_h]hphys_addr_t base}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj_ubj3)}(hhh]h)}(h the base phys addr of the regionh]h the base phys addr of the region}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj_ubah}(h]h ]h"]h$]h&]uh1j2hj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMhj_ubj)}(h,``phys_addr_t size`` the size of the region h](j)}(h``phys_addr_t size``h]h)}(hj_h]hphys_addr_t size}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj_ubj3)}(hhh]h)}(hthe size of the regionh]hthe size of the region}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj_ubah}(h]h ]h"]h$]h&]uh1j2hj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMhj_ubeh}(h]h ]h"]h$]h&]uh1j hjl_ubh)}(h **Return**h]j)}(hj`h]hReturn}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjl_ubh)}(h 0 on success, -errno on failure.h]h 0 on success, -errno on failure.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjl_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\!memblock_mark_mirror (C function)c.memblock_mark_mirrorhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hMint __init_memblock memblock_mark_mirror (phys_addr_t base, phys_addr_t size)h]jl)}(hLint __init_memblock memblock_mark_mirror(phys_addr_t base, phys_addr_t size)h](jF)}(hinth]hint}(hjJ`hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjF`hhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMubj)}(h h]h }(hjY`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF`hhhjX`hMubh__init_memblock}(hjF`hhhNhNubj)}(h h]h }(hjk`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF`hhhjX`hMubj)}(hmemblock_mark_mirrorh]j)}(hmemblock_mark_mirrorh]hmemblock_mark_mirror}(hj}`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy`ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjF`hhhjX`hMubj~)}(h$(phys_addr_t base, phys_addr_t size)h](j)}(hphys_addr_t baseh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj`modnameN classnameNjj)}j]j)}jj`sbc.memblock_mark_mirrorasbuh1hhj`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hbaseh]hbase}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubj)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj`modnameN classnameNjj)}j]j`c.memblock_mark_mirrorasbuh1hhj`ubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hsizeh]hsize}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubeh}(h]h ]h"]h$]h&]jjuh1j}hjF`hhhjX`hMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjB`hhhjX`hMubah}(h]j=`ah ](jjeh"]h$]h&]jj)jhuh1jehjX`hMhj?`hhubj)}(hhh]h)}(h/Mark mirrored memory with flag MEMBLOCK_MIRROR.h]h/Mark mirrored memory with flag MEMBLOCK_MIRROR.}(hjlubah}(h]h ]h"]h$]h&]uh1j2hj"lubeh}(h]h ]h"]h$]h&]uh1jhj=lhMAhjkubj)}(hJ``enum memblock_flags flags`` pick from blocks based on memory attributes h](j)}(h``enum memblock_flags flags``h]h)}(hjslh]henum memblock_flags flags}(hjulhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqlubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMBhjmlubj3)}(hhh]h)}(h+pick from blocks based on memory attributesh]h+pick from blocks based on memory attributes}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMBhjlubah}(h]h ]h"]h$]h&]uh1j2hjmlubeh}(h]h ]h"]h$]h&]uh1jhjlhMBhjkubj)}(hX``struct memblock_type *type_a`` pointer to memblock_type from where the range is taken h](j)}(h ``struct memblock_type *type_a``h]h)}(hjlh]hstruct memblock_type *type_a}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMChjlubj3)}(hhh]h)}(h6pointer to memblock_type from where the range is takenh]h6pointer to memblock_type from where the range is taken}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMChjlubah}(h]h ]h"]h$]h&]uh1j2hjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMChjkubj)}(ha``struct memblock_type *type_b`` pointer to memblock_type which excludes memory from being taken h](j)}(h ``struct memblock_type *type_b``h]h)}(hjlh]hstruct memblock_type *type_b}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMDhjlubj3)}(hhh]h)}(h?pointer to memblock_type which excludes memory from being takenh]h?pointer to memblock_type which excludes memory from being taken}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMDhjlubah}(h]h ]h"]h$]h&]uh1j2hjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMDhjkubj)}(h^``phys_addr_t *out_start`` ptr to phys_addr_t for start address of the range, can be ``NULL`` h](j)}(h``phys_addr_t *out_start``h]h)}(hjmh]hphys_addr_t *out_start}(hj mhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMEhjmubj3)}(hhh]h)}(hBptr to phys_addr_t for start address of the range, can be ``NULL``h](h:ptr to phys_addr_t for start address of the range, can be }(hj7mhhhNhNubh)}(h``NULL``h]hNULL}(hj?mhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7mubeh}(h]h ]h"]h$]h&]uh1hhj3mhMEhj4mubah}(h]h ]h"]h$]h&]uh1j2hjmubeh}(h]h ]h"]h$]h&]uh1jhj3mhMEhjkubj)}(hZ``phys_addr_t *out_end`` ptr to phys_addr_t for end address of the range, can be ``NULL`` h](j)}(h``phys_addr_t *out_end``h]h)}(hjemh]hphys_addr_t *out_end}(hjgmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcmubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMFhj_mubj3)}(hhh]h)}(h@ptr to phys_addr_t for end address of the range, can be ``NULL``h](h8ptr to phys_addr_t for end address of the range, can be }(hj~mhhhNhNubh)}(h``NULL``h]hNULL}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~mubeh}(h]h ]h"]h$]h&]uh1hhjzmhMFhj{mubah}(h]h ]h"]h$]h&]uh1j2hj_mubeh}(h]h ]h"]h$]h&]uh1jhjzmhMFhjkubj)}(hB``int *out_nid`` ptr to int for nid of the range, can be ``NULL`` h](j)}(h``int *out_nid``h]h)}(hjmh]h int *out_nid}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMGhjmubj3)}(hhh]h)}(h0ptr to int for nid of the range, can be ``NULL``h](h(ptr to int for nid of the range, can be }(hjmhhhNhNubh)}(h``NULL``h]hNULL}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmubeh}(h]h ]h"]h$]h&]uh1hhjmhMGhjmubah}(h]h ]h"]h$]h&]uh1j2hjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMGhjkubeh}(h]h ]h"]h$]h&]uh1j hjkubh)}(h**Description**h]j)}(hjmh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMIhjkubh)}(hX2Find the first area from ***idx** which matches **nid**, fill the out parameters, and update ***idx** for the next iteration. The lower 32bit of ***idx** contains index into type_a and the upper 32bit indexes the areas before each region in type_b. For example, if type_b regions look like the following,h](hFind the first area from }(hj nhhhNhNubj)}(h***idx**h]h*idx}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj nubh which matches }(hj nhhhNhNubj)}(h**nid**h]hnid}(hj%nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj nubh&, fill the out parameters, and update }(hj nhhhNhNubj)}(h***idx**h]h*idx}(hj7nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj nubh- for the next iteration. The lower 32bit of }(hj nhhhNhNubj)}(h***idx**h]h*idx}(hjInhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj nubh contains index into type_a and the upper 32bit indexes the areas before each region in type_b. For example, if type_b regions look like the following,}(hj nhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMIhjkubj< )}(h!0:[0-16), 1:[32-48), 2:[128-130) h]h)}(h 0:[0-16), 1:[32-48), 2:[128-130)h]h 0:[0-16), 1:[32-48), 2:[128-130)}(hjfnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMOhjbnubah}(h]h ]h"]h$]h&]uh1j; hjtnhMOhjkubh)}(h.The upper 32bit indexes the following regions.h]h.The upper 32bit indexes the following regions.}(hj{nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMQhjkubj< )}(h,0:[0-0), 1:[16-32), 2:[48-128), 3:[130-MAX) h]h)}(h+0:[0-0), 1:[16-32), 2:[48-128), 3:[130-MAX)h]h+0:[0-0), 1:[16-32), 2:[48-128), 3:[130-MAX)}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMShjnubah}(h]h ]h"]h$]h&]uh1j; hjnhMShjkubh)}(hrAs both region arrays are sorted, the function advances the two indices in lockstep and returns each intersection.h]hrAs both region arrays are sorted, the function advances the two indices in lockstep and returns each intersection.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMUhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\!__next_mem_range_rev (C function)c.__next_mem_range_revhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hvoid __init_memblock __next_mem_range_rev (u64 *idx, int nid, enum memblock_flags flags, struct memblock_type *type_a, struct memblock_type *type_b, phys_addr_t *out_start, phys_addr_t *out_end, int *out_nid)h]jl)}(hvoid __init_memblock __next_mem_range_rev(u64 *idx, int nid, enum memblock_flags flags, struct memblock_type *type_a, struct memblock_type *type_b, phys_addr_t *out_start, phys_addr_t *out_end, int *out_nid)h](jF)}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjnhhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjnhMubh__init_memblock}(hjnhhhNhNubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjnhMubj)}(h__next_mem_range_revh]j)}(h__next_mem_range_revh]h__next_mem_range_rev}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jhjnhhhjnhMubj~)}(h(u64 *idx, int nid, enum memblock_flags flags, struct memblock_type *type_a, struct memblock_type *type_b, phys_addr_t *out_start, phys_addr_t *out_end, int *out_nid)h](j)}(hu64 *idxh](h)}(hhh]j)}(hu64h]hu64}(hj$ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!oubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj&omodnameN classnameNjj)}j]j)}jjosbc.__next_mem_range_revasbuh1hhjoubj)}(h h]h }(hjDohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjI!)}(hj$h]h*}(hjRohhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjoubj)}(hidxh]hidx}(hj_ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(hint nidh](jF)}(hinth]hint}(hjxohhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjtoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtoubj)}(hnidh]hnid}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(henum memblock_flags flagsh](jr)}(hjuh]henum}(hjohhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hhh]j)}(hmemblock_flagsh]hmemblock_flags}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjomodnameN classnameNjj)}j]j@oc.__next_mem_range_revasbuh1hhjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hflagsh]hflags}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(hstruct memblock_type *type_ah](jr)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhj pubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj pubh)}(hhh]j)}(h memblock_typeh]h memblock_type}(hj.phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+pubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj0pmodnameN classnameNjj)}j]j@oc.__next_mem_range_revasbuh1hhj pubj)}(h h]h }(hjLphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj pubjI!)}(hj$h]h*}(hjZphhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hj pubj)}(htype_ah]htype_a}(hjgphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj pubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(hstruct memblock_type *type_bh](jr)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhj|pubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|pubh)}(hhh]j)}(h memblock_typeh]h memblock_type}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjpmodnameN classnameNjj)}j]j@oc.__next_mem_range_revasbuh1hhj|pubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|pubjI!)}(hj$h]h*}(hjphhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hj|pubj)}(htype_bh]htype_b}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|pubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(hphys_addr_t *out_starth](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjpmodnameN classnameNjj)}j]j@oc.__next_mem_range_revasbuh1hhjpubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjI!)}(hj$h]h*}(hjqhhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjpubj)}(h out_starth]h out_start}(hj,qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(hphys_addr_t *out_endh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjHqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEqubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjJqmodnameN classnameNjj)}j]j@oc.__next_mem_range_revasbuh1hhjAqubj)}(h h]h }(hjfqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAqubjI!)}(hj$h]h*}(hjtqhhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjAqubj)}(hout_endh]hout_end}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(h int *out_nidh](jF)}(hinth]hint}(hjqhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjI!)}(hj$h]h*}(hjqhhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjqubj)}(hout_nidh]hout_nid}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubeh}(h]h ]h"]h$]h&]jjuh1j}hjnhhhjnhMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjnhhhjnhMubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1jehjnhMhjnhhubj)}(hhh]h)}(h0generic next function for for_each_*_range_rev()h]h0generic next function for for_each_*_range_rev()}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjqhhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjnhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjrjjrjjjuh1j`hhhj0hNhNubj)}(hX**Parameters** ``u64 *idx`` pointer to u64 loop variable ``int nid`` node selector, ``NUMA_NO_NODE`` for all nodes ``enum memblock_flags flags`` pick from blocks based on memory attributes ``struct memblock_type *type_a`` pointer to memblock_type from where the range is taken ``struct memblock_type *type_b`` pointer to memblock_type which excludes memory from being taken ``phys_addr_t *out_start`` ptr to phys_addr_t for start address of the range, can be ``NULL`` ``phys_addr_t *out_end`` ptr to phys_addr_t for end address of the range, can be ``NULL`` ``int *out_nid`` ptr to int for nid of the range, can be ``NULL`` **Description** Finds the next range from type_a which is not marked as unsuitable in type_b. Reverse of __next_mem_range().h](h)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj rubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj rubj)}(hhh](j)}(h*``u64 *idx`` pointer to u64 loop variable h](j)}(h ``u64 *idx``h]h)}(hj.rh]hu64 *idx}(hj0rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,rubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj(rubj3)}(hhh]h)}(hpointer to u64 loop variableh]hpointer to u64 loop variable}(hjGrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCrhMhjDrubah}(h]h ]h"]h$]h&]uh1j2hj(rubeh}(h]h ]h"]h$]h&]uh1jhjCrhMhj%rubj)}(h:``int nid`` node selector, ``NUMA_NO_NODE`` for all nodes h](j)}(h ``int nid``h]h)}(hjgrh]hint nid}(hjirhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjerubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjarubj3)}(hhh]h)}(h-node selector, ``NUMA_NO_NODE`` for all nodesh](hnode selector, }(hjrhhhNhNubh)}(h``NUMA_NO_NODE``h]h NUMA_NO_NODE}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrubh for all nodes}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj|rhMhj}rubah}(h]h ]h"]h$]h&]uh1j2hjarubeh}(h]h ]h"]h$]h&]uh1jhj|rhMhj%rubj)}(hJ``enum memblock_flags flags`` pick from blocks based on memory attributes h](j)}(h``enum memblock_flags flags``h]h)}(hjrh]henum memblock_flags flags}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjrubj3)}(hhh]h)}(h+pick from blocks based on memory attributesh]h+pick from blocks based on memory attributes}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjrubah}(h]h ]h"]h$]h&]uh1j2hjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMhj%rubj)}(hX``struct memblock_type *type_a`` pointer to memblock_type from where the range is taken h](j)}(h ``struct memblock_type *type_a``h]h)}(hjrh]hstruct memblock_type *type_a}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjrubj3)}(hhh]h)}(h6pointer to memblock_type from where the range is takenh]h6pointer to memblock_type from where the range is taken}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjsubah}(h]h ]h"]h$]h&]uh1j2hjrubeh}(h]h ]h"]h$]h&]uh1jhjshMhj%rubj)}(ha``struct memblock_type *type_b`` pointer to memblock_type which excludes memory from being taken h](j)}(h ``struct memblock_type *type_b``h]h)}(hj$sh]hstruct memblock_type *type_b}(hj&shhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"subah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjsubj3)}(hhh]h)}(h?pointer to memblock_type which excludes memory from being takenh]h?pointer to memblock_type which excludes memory from being taken}(hj=shhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9shMhj:subah}(h]h ]h"]h$]h&]uh1j2hjsubeh}(h]h ]h"]h$]h&]uh1jhj9shMhj%rubj)}(h^``phys_addr_t *out_start`` ptr to phys_addr_t for start address of the range, can be ``NULL`` h](j)}(h``phys_addr_t *out_start``h]h)}(hj]sh]hphys_addr_t *out_start}(hj_shhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[subah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjWsubj3)}(hhh]h)}(hBptr to phys_addr_t for start address of the range, can be ``NULL``h](h:ptr to phys_addr_t for start address of the range, can be }(hjvshhhNhNubh)}(h``NULL``h]hNULL}(hj~shhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvsubeh}(h]h ]h"]h$]h&]uh1hhjrshMhjssubah}(h]h ]h"]h$]h&]uh1j2hjWsubeh}(h]h ]h"]h$]h&]uh1jhjrshMhj%rubj)}(hZ``phys_addr_t *out_end`` ptr to phys_addr_t for end address of the range, can be ``NULL`` h](j)}(h``phys_addr_t *out_end``h]h)}(hjsh]hphys_addr_t *out_end}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjsubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjsubj3)}(hhh]h)}(h@ptr to phys_addr_t for end address of the range, can be ``NULL``h](h8ptr to phys_addr_t for end address of the range, can be }(hjshhhNhNubh)}(h``NULL``h]hNULL}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjsubeh}(h]h ]h"]h$]h&]uh1hhjshMhjsubah}(h]h ]h"]h$]h&]uh1j2hjsubeh}(h]h ]h"]h$]h&]uh1jhjshMhj%rubj)}(hB``int *out_nid`` ptr to int for nid of the range, can be ``NULL`` h](j)}(h``int *out_nid``h]h)}(hjsh]h int *out_nid}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjsubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjsubj3)}(hhh]h)}(h0ptr to int for nid of the range, can be ``NULL``h](h(ptr to int for nid of the range, can be }(hjthhhNhNubh)}(h``NULL``h]hNULL}(hj thhhNhNubah}(h]h ]h"]h$]h&]uh1hhjtubeh}(h]h ]h"]h$]h&]uh1hhjthMhjtubah}(h]h ]h"]h$]h&]uh1j2hjsubeh}(h]h ]h"]h$]h&]uh1jhjthMhj%rubeh}(h]h ]h"]h$]h&]uh1j hj rubh)}(h**Description**h]j)}(hj4th]h Description}(hj6thhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2tubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj rubh)}(hMFinds the next range from type_a which is not marked as unsuitable in type_b.h]hMFinds the next range from type_a which is not marked as unsuitable in type_b.}(hjJthhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj rubh)}(hReverse of __next_mem_range().h]hReverse of __next_mem_range().}(hjYthhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj rubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\memblock_set_node (C function)c.memblock_set_nodehNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hoint __init_memblock memblock_set_node (phys_addr_t base, phys_addr_t size, struct memblock_type *type, int nid)h]jl)}(hnint __init_memblock memblock_set_node(phys_addr_t base, phys_addr_t size, struct memblock_type *type, int nid)h](jF)}(hinth]hint}(hjthhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjthhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM/ubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjthM/ubh__init_memblock}(hjthhhNhNubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjthM/ubj)}(hmemblock_set_nodeh]j)}(hmemblock_set_nodeh]hmemblock_set_node}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jhjthhhjthM/ubj~)}(hI(phys_addr_t base, phys_addr_t size, struct memblock_type *type, int nid)h](j)}(hphys_addr_t baseh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjtmodnameN classnameNjj)}j]j)}jjtsbc.memblock_set_nodeasbuh1hhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hbaseh]hbase}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj$uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!uubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj&umodnameN classnameNjj)}j]jtc.memblock_set_nodeasbuh1hhjuubj)}(h h]h }(hjBuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hsizeh]hsize}(hjPuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(hstruct memblock_type *typeh](jr)}(hjh]hstruct}(hjiuhhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhjeuubj)}(h h]h }(hjvuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeuubh)}(hhh]j)}(h memblock_typeh]h memblock_type}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjumodnameN classnameNjj)}j]jtc.memblock_set_nodeasbuh1hhjeuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeuubjI!)}(hj$h]h*}(hjuhhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjeuubj)}(htypeh]htype}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(hint nidh](jF)}(hinth]hint}(hjuhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hnidh]hnid}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubeh}(h]h ]h"]h$]h&]jjuh1j}hjthhhjthM/ubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjthhhjthM/ubah}(h]j{tah ](jjeh"]h$]h&]jj)jhuh1jehjthM/hj}thhubj)}(hhh]h)}(hset node ID on memblock regionsh]hset node ID on memblock regions}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM#hjvhhubah}(h]h ]h"]h$]h&]uh1jhj}thhhjthM/ubeh}(h]h ](hfunctioneh"]h$]h&]jhjj7vjj7vjjjuh1j`hhhj0hNhNubj)}(hX**Parameters** ``phys_addr_t base`` base of area to set node ID for ``phys_addr_t size`` size of area to set node ID for ``struct memblock_type *type`` memblock type to set node ID for ``int nid`` node ID to set **Description** Set the nid of memblock **type** regions in [**base**, **base** + **size**) to **nid**. Regions which cross the area boundaries are split as necessary. **Return** 0 on success, -errno on failure.h](h)}(h**Parameters**h]j)}(hjAvh]h Parameters}(hjCvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?vubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM'hj;vubj)}(hhh](j)}(h5``phys_addr_t base`` base of area to set node ID for h](j)}(h``phys_addr_t base``h]h)}(hj`vh]hphys_addr_t base}(hjbvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^vubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM$hjZvubj3)}(hhh]h)}(hbase of area to set node ID forh]hbase of area to set node ID for}(hjyvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuvhM$hjvvubah}(h]h ]h"]h$]h&]uh1j2hjZvubeh}(h]h ]h"]h$]h&]uh1jhjuvhM$hjWvubj)}(h5``phys_addr_t size`` size of area to set node ID for h](j)}(h``phys_addr_t size``h]h)}(hjvh]hphys_addr_t size}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM%hjvubj3)}(hhh]h)}(hsize of area to set node ID forh]hsize of area to set node ID for}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhM%hjvubah}(h]h ]h"]h$]h&]uh1j2hjvubeh}(h]h ]h"]h$]h&]uh1jhjvhM%hjWvubj)}(h@``struct memblock_type *type`` memblock type to set node ID for h](j)}(h``struct memblock_type *type``h]h)}(hjvh]hstruct memblock_type *type}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM&hjvubj3)}(hhh]h)}(h memblock type to set node ID forh]h memblock type to set node ID for}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhM&hjvubah}(h]h ]h"]h$]h&]uh1j2hjvubeh}(h]h ]h"]h$]h&]uh1jhjvhM&hjWvubj)}(h``int nid`` node ID to set h](j)}(h ``int nid``h]h)}(hj wh]hint nid}(hj whhhNhNubah}(h]h ]h"]h$]h&]uh1hhj wubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM'hjwubj3)}(hhh]h)}(hnode ID to seth]hnode ID to set}(hj$whhhNhNubah}(h]h ]h"]h$]h&]uh1hhj whM'hj!wubah}(h]h ]h"]h$]h&]uh1j2hjwubeh}(h]h ]h"]h$]h&]uh1jhj whM'hjWvubeh}(h]h ]h"]h$]h&]uh1j hj;vubh)}(h**Description**h]j)}(hjFwh]h Description}(hjHwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDwubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM)hj;vubh)}(hSet the nid of memblock **type** regions in [**base**, **base** + **size**) to **nid**. Regions which cross the area boundaries are split as necessary.h](hSet the nid of memblock }(hj\whhhNhNubj)}(h**type**h]htype}(hjdwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\wubh regions in [}(hj\whhhNhNubj)}(h**base**h]hbase}(hjvwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\wubh, }(hj\whhhNhNubj)}(h**base**h]hbase}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\wubh + }(hj\whhhNhNubj)}(h**size**h]hsize}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\wubh) to }(hj\whhhNhNubj)}(h**nid**h]hnid}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\wubhA. Regions which cross the area boundaries are split as necessary.}(hj\whhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM)hj;vubh)}(h **Return**h]j)}(hjwh]hReturn}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM,hj;vubh)}(h 0 on success, -errno on failure.h]h 0 on success, -errno on failure.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM,hj;vubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\)__next_mem_pfn_range_in_zone (C function)c.__next_mem_pfn_range_in_zonehNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hvoid __init_memblock __next_mem_pfn_range_in_zone (u64 *idx, struct zone *zone, unsigned long *out_spfn, unsigned long *out_epfn)h]jl)}(hvoid __init_memblock __next_mem_pfn_range_in_zone(u64 *idx, struct zone *zone, unsigned long *out_spfn, unsigned long *out_epfn)h](jF)}(hvoidh]hvoid}(hj xhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjxhhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMRubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjxhMRubh__init_memblock}(hjxhhhNhNubj)}(h h]h }(hj-xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjxhMRubj)}(h__next_mem_pfn_range_in_zoneh]j)}(h__next_mem_pfn_range_in_zoneh]h__next_mem_pfn_range_in_zone}(hj?xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;xubah}(h]h ](jjeh"]h$]h&]jjuh1jhjxhhhjxhMRubj~)}(hO(u64 *idx, struct zone *zone, unsigned long *out_spfn, unsigned long *out_epfn)h](j)}(hu64 *idxh](h)}(hhh]j)}(hu64h]hu64}(hj^xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[xubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj`xmodnameN classnameNjj)}j]j)}jjAxsbc.__next_mem_pfn_range_in_zoneasbuh1hhjWxubj)}(h h]h }(hj~xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWxubjI!)}(hj$h]h*}(hjxhhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjWxubj)}(hidxh]hidx}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSxubj)}(hstruct zone *zoneh](jr)}(hjh]hstruct}(hjxhhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubh)}(hhh]j)}(hzoneh]hzone}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjxmodnameN classnameNjj)}j]jzxc.__next_mem_pfn_range_in_zoneasbuh1hhjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjI!)}(hj$h]h*}(hjxhhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjxubj)}(hzoneh]hzone}(hj yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSxubj)}(hunsigned long *out_spfnh](jF)}(hunsignedh]hunsigned}(hj"yhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjyubj)}(h h]h }(hj0yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjF)}(hlongh]hlong}(hj>yhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjyubj)}(h h]h }(hjLyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjI!)}(hj$h]h*}(hjZyhhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjyubj)}(hout_spfnh]hout_spfn}(hjgyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSxubj)}(hunsigned long *out_epfnh](jF)}(hunsignedh]hunsigned}(hjyhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj|yubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|yubjF)}(hlongh]hlong}(hjyhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj|yubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|yubjI!)}(hj$h]h*}(hjyhhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hj|yubj)}(hout_epfnh]hout_epfn}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|yubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSxubeh}(h]h ]h"]h$]h&]jjuh1j}hjxhhhjxhMRubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjxhhhjxhMRubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1jehjxhMRhjxhhubj)}(hhh]h)}(h'iterator for for_each_*_range_in_zone()h]h'iterator for for_each_*_range_in_zone()}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMDhjyhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjxhMRubeh}(h]h ](hfunctioneh"]h$]h&]jhjjzjjzjjjuh1j`hhhj0hNhNubj)}(hX**Parameters** ``u64 *idx`` pointer to u64 loop variable ``struct zone *zone`` zone in which all of the memory blocks reside ``unsigned long *out_spfn`` ptr to ulong for start pfn of the range, can be ``NULL`` ``unsigned long *out_epfn`` ptr to ulong for end pfn of the range, can be ``NULL`` **Description** This function is meant to be a zone/pfn specific wrapper for the for_each_mem_range type iterators. Specifically they are used in the deferred memory init routines and as such we were duplicating much of this logic throughout the code. So instead of having it in multiple locations it seemed like it would make more sense to centralize this to one new iterator that does everything they need.h](h)}(h**Parameters**h]j)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMHhj zubj)}(hhh](j)}(h*``u64 *idx`` pointer to u64 loop variable h](j)}(h ``u64 *idx``h]h)}(hj0zh]hu64 *idx}(hj2zhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.zubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMFhj*zubj3)}(hhh]h)}(hpointer to u64 loop variableh]hpointer to u64 loop variable}(hjIzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEzhMFhjFzubah}(h]h ]h"]h$]h&]uh1j2hj*zubeh}(h]h ]h"]h$]h&]uh1jhjEzhMFhj'zubj)}(hD``struct zone *zone`` zone in which all of the memory blocks reside h](j)}(h``struct zone *zone``h]h)}(hjizh]hstruct zone *zone}(hjkzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgzubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMGhjczubj3)}(hhh]h)}(h-zone in which all of the memory blocks resideh]h-zone in which all of the memory blocks reside}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~zhMGhjzubah}(h]h ]h"]h$]h&]uh1j2hjczubeh}(h]h ]h"]h$]h&]uh1jhj~zhMGhj'zubj)}(hU``unsigned long *out_spfn`` ptr to ulong for start pfn of the range, can be ``NULL`` h](j)}(h``unsigned long *out_spfn``h]h)}(hjzh]hunsigned long *out_spfn}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMHhjzubj3)}(hhh]h)}(h8ptr to ulong for start pfn of the range, can be ``NULL``h](h0ptr to ulong for start pfn of the range, can be }(hjzhhhNhNubh)}(h``NULL``h]hNULL}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzubeh}(h]h ]h"]h$]h&]uh1hhjzhMHhjzubah}(h]h ]h"]h$]h&]uh1j2hjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMHhj'zubj)}(hS``unsigned long *out_epfn`` ptr to ulong for end pfn of the range, can be ``NULL`` h](j)}(h``unsigned long *out_epfn``h]h)}(hjzh]hunsigned long *out_epfn}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMIhjzubj3)}(hhh]h)}(h6ptr to ulong for end pfn of the range, can be ``NULL``h](h.ptr to ulong for end pfn of the range, can be }(hj{hhhNhNubh)}(h``NULL``h]hNULL}(hj {hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{ubeh}(h]h ]h"]h$]h&]uh1hhjzhMIhjzubah}(h]h ]h"]h$]h&]uh1j2hjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMIhj'zubeh}(h]h ]h"]h$]h&]uh1j hj zubh)}(h**Description**h]j)}(hj2{h]h Description}(hj4{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0{ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMKhj zubh)}(hXThis function is meant to be a zone/pfn specific wrapper for the for_each_mem_range type iterators. Specifically they are used in the deferred memory init routines and as such we were duplicating much of this logic throughout the code. So instead of having it in multiple locations it seemed like it would make more sense to centralize this to one new iterator that does everything they need.h]hXThis function is meant to be a zone/pfn specific wrapper for the for_each_mem_range type iterators. Specifically they are used in the deferred memory init routines and as such we were duplicating much of this logic throughout the code. So instead of having it in multiple locations it seemed like it would make more sense to centralize this to one new iterator that does everything they need.}(hjH{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMKhj zubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\%memblock_alloc_range_nid (C function)c.memblock_alloc_range_nidhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hphys_addr_t memblock_alloc_range_nid (phys_addr_t size, phys_addr_t align, phys_addr_t start, phys_addr_t end, int nid, bool exact_nid)h]jl)}(hphys_addr_t memblock_alloc_range_nid(phys_addr_t size, phys_addr_t align, phys_addr_t start, phys_addr_t end, int nid, bool exact_nid)h](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjz{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw{ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj|{modnameN classnameNjj)}j]j)}jmemblock_alloc_range_nidsbc.memblock_alloc_range_nidasbuh1hhjs{hhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs{hhhj{hMubj)}(hmemblock_alloc_range_nidh]j)}(hj{h]hmemblock_alloc_range_nid}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jhjs{hhhj{hMubj~)}(hb(phys_addr_t size, phys_addr_t align, phys_addr_t start, phys_addr_t end, int nid, bool exact_nid)h](j)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj{modnameN classnameNjj)}j]j{c.memblock_alloc_range_nidasbuh1hhj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hsizeh]hsize}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hphys_addr_t alignh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj|modnameN classnameNjj)}j]j{c.memblock_alloc_range_nidasbuh1hhj |ubj)}(h h]h }(hj2|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj |ubj)}(halignh]halign}(hj@|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj |ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hphys_addr_t starth](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj\|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY|ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj^|modnameN classnameNjj)}j]j{c.memblock_alloc_range_nidasbuh1hhjU|ubj)}(h h]h }(hjz|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU|ubj)}(hstarth]hstart}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hphys_addr_t endh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj|modnameN classnameNjj)}j]j{c.memblock_alloc_range_nidasbuh1hhj|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hendh]hend}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hint nidh](jF)}(hinth]hint}(hj|hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hnidh]hnid}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hbool exact_nidh](jF)}(hj Oh]hbool}(hj}hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj}ubj)}(h h]h }(hj+}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(h exact_nidh]h exact_nid}(hj9}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubeh}(h]h ]h"]h$]h&]jjuh1j}hjs{hhhj{hMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjo{hhhj{hMubah}(h]jj{ah ](jjeh"]h$]h&]jj)jhuh1jehj{hMhjl{hhubj)}(hhh]h)}(hallocate boot memory blockh]hallocate boot memory block}(hjc}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj`}hhubah}(h]h ]h"]h$]h&]uh1jhjl{hhhj{hMubeh}(h]h ](hfunctioneh"]h$]h&]jhjj{}jj{}jjjuh1j`hhhj0hNhNubj)}(hXO**Parameters** ``phys_addr_t size`` size of memory block to be allocated in bytes ``phys_addr_t align`` alignment of the region and block's size ``phys_addr_t start`` the lower bound of the memory region to allocate (phys address) ``phys_addr_t end`` the upper bound of the memory region to allocate (phys address) ``int nid`` nid of the free area to find, ``NUMA_NO_NODE`` for any node ``bool exact_nid`` control the allocation fall back to other nodes **Description** The allocation is performed from memory region limited by memblock.current_limit if **end** == ``MEMBLOCK_ALLOC_ACCESSIBLE``. If the specified node can not hold the requested memory and **exact_nid** is false, the allocation falls back to any node in the system. For systems with memory mirroring, the allocation is attempted first from the regions with mirroring enabled and then retried from any memory region. In addition, function using kmemleak_alloc_phys for allocated boot memory block, it is never reported as leaks. **Return** Physical address of allocated memory block on success, ``0`` on failure.h](h)}(h**Parameters**h]j)}(hj}h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj}ubj)}(hhh](j)}(hC``phys_addr_t size`` size of memory block to be allocated in bytes h](j)}(h``phys_addr_t size``h]h)}(hj}h]hphys_addr_t size}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj}ubj3)}(hhh]h)}(h-size of memory block to be allocated in bytesh]h-size of memory block to be allocated in bytes}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhj}ubah}(h]h ]h"]h$]h&]uh1j2hj}ubeh}(h]h ]h"]h$]h&]uh1jhj}hMhj}ubj)}(h?``phys_addr_t align`` alignment of the region and block's size h](j)}(h``phys_addr_t align``h]h)}(hj}h]hphys_addr_t align}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj}ubj3)}(hhh]h)}(h(alignment of the region and block's sizeh]h*alignment of the region and block’s size}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhj}ubah}(h]h ]h"]h$]h&]uh1j2hj}ubeh}(h]h ]h"]h$]h&]uh1jhj}hMhj}ubj)}(hV``phys_addr_t start`` the lower bound of the memory region to allocate (phys address) h](j)}(h``phys_addr_t start``h]h)}(hj~h]hphys_addr_t start}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj~ubj3)}(hhh]h)}(h?the lower bound of the memory region to allocate (phys address)h]h?the lower bound of the memory region to allocate (phys address)}(hj/~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+~hMhj,~ubah}(h]h ]h"]h$]h&]uh1j2hj~ubeh}(h]h ]h"]h$]h&]uh1jhj+~hMhj}ubj)}(hT``phys_addr_t end`` the upper bound of the memory region to allocate (phys address) h](j)}(h``phys_addr_t end``h]h)}(hjO~h]hphys_addr_t end}(hjQ~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjM~ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjI~ubj3)}(hhh]h)}(h?the upper bound of the memory region to allocate (phys address)h]h?the upper bound of the memory region to allocate (phys address)}(hjh~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjd~hMhje~ubah}(h]h ]h"]h$]h&]uh1j2hjI~ubeh}(h]h ]h"]h$]h&]uh1jhjd~hMhj}ubj)}(hH``int nid`` nid of the free area to find, ``NUMA_NO_NODE`` for any node h](j)}(h ``int nid``h]h)}(hj~h]hint nid}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj~ubj3)}(hhh]h)}(h;nid of the free area to find, ``NUMA_NO_NODE`` for any nodeh](hnid of the free area to find, }(hj~hhhNhNubh)}(h``NUMA_NO_NODE``h]h NUMA_NO_NODE}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~ubh for any node}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj~hMhj~ubah}(h]h ]h"]h$]h&]uh1j2hj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj}ubj)}(hC``bool exact_nid`` control the allocation fall back to other nodes h](j)}(h``bool exact_nid``h]h)}(hj~h]hbool exact_nid}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj~ubj3)}(hhh]h)}(h/control the allocation fall back to other nodesh]h/control the allocation fall back to other nodes}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhj~ubah}(h]h ]h"]h$]h&]uh1j2hj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj}ubeh}(h]h ]h"]h$]h&]uh1j hj}ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj}ubh)}(h}The allocation is performed from memory region limited by memblock.current_limit if **end** == ``MEMBLOCK_ALLOC_ACCESSIBLE``.h](hTThe allocation is performed from memory region limited by memblock.current_limit if }(hj$hhhNhNubj)}(h**end**h]hend}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh == }(hj$hhhNhNubh)}(h``MEMBLOCK_ALLOC_ACCESSIBLE``h]hMEMBLOCK_ALLOC_ACCESSIBLE}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$ubh.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj}ubh)}(hIf the specified node can not hold the requested memory and **exact_nid** is false, the allocation falls back to any node in the system.h](hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjubj)}(hX``phys_addr_t end`` the upper bound of the memory region to allocate (physical address) h](j)}(h``phys_addr_t end``h]h)}(hj^h]hphys_addr_t end}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjXubj3)}(hhh]h)}(hCthe upper bound of the memory region to allocate (physical address)h]hCthe upper bound of the memory region to allocate (physical address)}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjtubah}(h]h ]h"]h$]h&]uh1j2hjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubh)}(h=Allocate **size** bytes in the between **start** and **end**.h](h Allocate }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bytes in the between }(hjhhhNhNubj)}(h **start**h]hstart}(hjɂhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**end**h]hend}(hjۂhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubh)}(hLphysical address of the allocated memory block on success, ``0`` on failure.h](h;physical address of the allocated memory block on success, }(hj hhhNhNubh)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubh on failure.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\(memblock_phys_alloc_try_nid (C function)c.memblock_phys_alloc_try_nidhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hVphys_addr_t memblock_phys_alloc_try_nid (phys_addr_t size, phys_addr_t align, int nid)h]jl)}(hUphys_addr_t memblock_phys_alloc_try_nid(phys_addr_t size, phys_addr_t align, int nid)h](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjRmodnameN classnameNjj)}j]j)}jmemblock_phys_alloc_try_nidsbc.memblock_phys_alloc_try_nidasbuh1hhjIhhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhjqhM ubj)}(hmemblock_phys_alloc_try_nidh]j)}(hjnh]hmemblock_phys_alloc_try_nid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjIhhhjqhM ubj~)}(h.(phys_addr_t size, phys_addr_t align, int nid)h](j)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjmodnameN classnameNjj)}j]jlc.memblock_phys_alloc_try_nidasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hj΃hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hphys_addr_t alignh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjmodnameN classnameNjj)}j]jlc.memblock_phys_alloc_try_nidasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(halignh]halign}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint nidh](jF)}(hinth]hint}(hj/hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj+ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hnidh]hnid}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1j}hjIhhhjqhM ubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjEhhhjqhM ubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1jehjqhM hjBhhubj)}(hhh]h)}(h0allocate a memory block from specified NUMA nodeh]h0allocate a memory block from specified NUMA node}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjrhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjqhM ubeh}(h]h ](hfunctioneh"]h$]h&]jhjjjjjjjuh1j`hhhj0hNhNubj)}(hX**Parameters** ``phys_addr_t size`` size of memory block to be allocated in bytes ``phys_addr_t align`` alignment of the region and block's size ``int nid`` nid of the free area to find, ``NUMA_NO_NODE`` for any node **Description** Allocates memory block from the specified NUMA node. If the node has no available memory, attempts to allocated from any node in the system. **Return** physical address of the allocated memory block on success, ``0`` on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubj)}(hhh](j)}(hC``phys_addr_t size`` size of memory block to be allocated in bytes h](j)}(h``phys_addr_t size``h]h)}(hjh]hphys_addr_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubj3)}(hhh]h)}(h-size of memory block to be allocated in bytesh]h-size of memory block to be allocated in bytes}(hjτhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj˄hMhj̄ubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhj˄hMhjubj)}(h?``phys_addr_t align`` alignment of the region and block's size h](j)}(h``phys_addr_t align``h]h)}(hjh]hphys_addr_t align}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubj3)}(hhh]h)}(h(alignment of the region and block's sizeh]h*alignment of the region and block’s size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hH``int nid`` nid of the free area to find, ``NUMA_NO_NODE`` for any node h](j)}(h ``int nid``h]h)}(hj(h]hint nid}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj"ubj3)}(hhh]h)}(h;nid of the free area to find, ``NUMA_NO_NODE`` for any nodeh](hnid of the free area to find, }(hjAhhhNhNubh)}(h``NUMA_NO_NODE``h]h NUMA_NO_NODE}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAubh for any node}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj=hMhj>ubah}(h]h ]h"]h$]h&]uh1j2hj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjuh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubh)}(hAllocates memory block from the specified NUMA node. If the node has no available memory, attempts to allocated from any node in the system.h]hAllocates memory block from the specified NUMA node. If the node has no available memory, attempts to allocated from any node in the system.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubh)}(hLphysical address of the allocated memory block on success, ``0`` on failure.h](h;physical address of the allocated memory block on success, }(hjhhhNhNubh)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh on failure.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\$memblock_alloc_internal (C function)c.memblock_alloc_internalhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hvoid * memblock_alloc_internal (phys_addr_t size, phys_addr_t align, phys_addr_t min_addr, phys_addr_t max_addr, int nid, bool exact_nid)h]jl)}(hvoid *memblock_alloc_internal(phys_addr_t size, phys_addr_t align, phys_addr_t min_addr, phys_addr_t max_addr, int nid, bool exact_nid)h](jF)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM$ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM$ubjI!)}(hj$h]h*}(hjhhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjhhhjhM$ubj)}(hmemblock_alloc_internalh]j)}(hmemblock_alloc_internalh]hmemblock_alloc_internal}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhjhM$ubj~)}(hj(phys_addr_t size, phys_addr_t align, phys_addr_t min_addr, phys_addr_t max_addr, int nid, bool exact_nid)h](j)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjBmodnameN classnameNjj)}j]j)}jj#sbc.memblock_alloc_internalasbuh1hhj9ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hsizeh]hsize}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hphys_addr_t alignh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjmodnameN classnameNjj)}j]j\c.memblock_alloc_internalasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(halignh]halign}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hphys_addr_t min_addrh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj҆hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjφubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjԆmodnameN classnameNjj)}j]j\c.memblock_alloc_internalasbuh1hhjˆubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjˆubj)}(hmin_addrh]hmin_addr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjˆubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hphys_addr_t max_addrh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjmodnameN classnameNjj)}j]j\c.memblock_alloc_internalasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmax_addrh]hmax_addr}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hint nidh](jF)}(hinth]hint}(hj_hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj[ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hnidh]hnid}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hbool exact_nidh](jF)}(hj Oh]hbool}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h exact_nidh]h exact_nid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubeh}(h]h ]h"]h$]h&]jjuh1j}hjhhhjhM$ubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjhhhjhM$ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jehjhM$hjhhubj)}(hhh]h)}(hallocate boot memory blockh]hallocate boot memory block}(hjهhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjևhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM$ubeh}(h]h ](hfunctioneh"]h$]h&]jhjjjjjjjuh1j`hhhj0hNhNubj)}(hX**Parameters** ``phys_addr_t size`` size of memory block to be allocated in bytes ``phys_addr_t align`` alignment of the region and block's size ``phys_addr_t min_addr`` the lower bound of the memory region to allocate (phys address) ``phys_addr_t max_addr`` the upper bound of the memory region to allocate (phys address) ``int nid`` nid of the free area to find, ``NUMA_NO_NODE`` for any node ``bool exact_nid`` control the allocation fall back to other nodes **Description** Allocates memory block using memblock_alloc_range_nid() and converts the returned physical address to virtual. The **min_addr** limit is dropped if it can not be satisfied and the allocation will fall back to memory below **min_addr**. Other constraints, such as node and mirrored memory will be handled again in memblock_alloc_range_nid(). **Return** Virtual address of allocated memory block on success, NULL on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubj)}(hhh](j)}(hC``phys_addr_t size`` size of memory block to be allocated in bytes h](j)}(h``phys_addr_t size``h]h)}(hjh]hphys_addr_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubj3)}(hhh]h)}(h-size of memory block to be allocated in bytesh]h-size of memory block to be allocated in bytes}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjubj)}(h?``phys_addr_t align`` alignment of the region and block's size h](j)}(h``phys_addr_t align``h]h)}(hjSh]hphys_addr_t align}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjMubj3)}(hhh]h)}(h(alignment of the region and block's sizeh]h*alignment of the region and block’s size}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1j2hjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjubj)}(hY``phys_addr_t min_addr`` the lower bound of the memory region to allocate (phys address) h](j)}(h``phys_addr_t min_addr``h]h)}(hjh]hphys_addr_t min_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubj3)}(hhh]h)}(h?the lower bound of the memory region to allocate (phys address)h]h?the lower bound of the memory region to allocate (phys address)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hY``phys_addr_t max_addr`` the upper bound of the memory region to allocate (phys address) h](j)}(h``phys_addr_t max_addr``h]h)}(hjňh]hphys_addr_t max_addr}(hjLjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjÈubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubj3)}(hhh]h)}(h?the upper bound of the memory region to allocate (phys address)h]h?the upper bound of the memory region to allocate (phys address)}(hjވhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjڈhMhjۈubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjڈhMhjubj)}(hH``int nid`` nid of the free area to find, ``NUMA_NO_NODE`` for any node h](j)}(h ``int nid``h]h)}(hjh]hint nid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubj3)}(hhh]h)}(h;nid of the free area to find, ``NUMA_NO_NODE`` for any nodeh](hnid of the free area to find, }(hjhhhNhNubh)}(h``NUMA_NO_NODE``h]h NUMA_NO_NODE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh for any node}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hC``bool exact_nid`` control the allocation fall back to other nodes h](j)}(h``bool exact_nid``h]h)}(hjIh]hbool exact_nid}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjCubj3)}(hhh]h)}(h/control the allocation fall back to other nodesh]h/control the allocation fall back to other nodes}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1j2hjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubh)}(hnAllocates memory block using memblock_alloc_range_nid() and converts the returned physical address to virtual.h]hnAllocates memory block using memblock_alloc_range_nid() and converts the returned physical address to virtual.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubh)}(hThe **min_addr** limit is dropped if it can not be satisfied and the allocation will fall back to memory below **min_addr**. Other constraints, such as node and mirrored memory will be handled again in memblock_alloc_range_nid().h](hThe }(hjhhhNhNubj)}(h **min_addr**h]hmin_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh_ limit is dropped if it can not be satisfied and the allocation will fall back to memory below }(hjhhhNhNubj)}(h **min_addr**h]hmin_addr}(hjÉhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhj. Other constraints, such as node and mirrored memory will be handled again in memblock_alloc_range_nid().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubh)}(h **Return**h]j)}(hjމh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܉ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM!hjubh)}(hFVirtual address of allocated memory block on success, NULL on failure.h]hFVirtual address of allocated memory block on success, NULL on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM!hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\)memblock_alloc_exact_nid_raw (C function)c.memblock_alloc_exact_nid_rawhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(h~void * memblock_alloc_exact_nid_raw (phys_addr_t size, phys_addr_t align, phys_addr_t min_addr, phys_addr_t max_addr, int nid)h]jl)}(h|void *memblock_alloc_exact_nid_raw(phys_addr_t size, phys_addr_t align, phys_addr_t min_addr, phys_addr_t max_addr, int nid)h](jF)}(hvoidh]hvoid}(hj#hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMOubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj1hMOubjI!)}(hj$h]h*}(hj@hhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjhhhj1hMOubj)}(hmemblock_alloc_exact_nid_rawh]j)}(hmemblock_alloc_exact_nid_rawh]hmemblock_alloc_exact_nid_raw}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj1hMOubj~)}(hZ(phys_addr_t size, phys_addr_t align, phys_addr_t min_addr, phys_addr_t max_addr, int nid)h](j)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjrmodnameN classnameNjj)}j]j)}jjSsbc.memblock_alloc_exact_nid_rawasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hphys_addr_t alignh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjmodnameN classnameNjj)}j]jc.memblock_alloc_exact_nid_rawasbuh1hhjubj)}(h h]h }(hj؊hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(halignh]halign}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hphys_addr_t min_addrh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjmodnameN classnameNjj)}j]jc.memblock_alloc_exact_nid_rawasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmin_addrh]hmin_addr}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hphys_addr_t max_addrh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjLmodnameN classnameNjj)}j]jc.memblock_alloc_exact_nid_rawasbuh1hhjCubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hmax_addrh]hmax_addr}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hint nidh](jF)}(hinth]hint}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnidh]hnid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(h]h ]h"]h$]h&]jjuh1j}hjhhhj1hMOubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjhhhj1hMOubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jehj1hMOhjhhubj)}(hhh]h)}(hCallocate boot memory block on the exact node without zeroing memoryh]hCallocate boot memory block on the exact node without zeroing memory}(hjՋhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM>hjҋhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj1hMOubeh}(h]h ](hfunctioneh"]h$]h&]jhjjjjjjjuh1j`hhhj0hNhNubj)}(hX**Parameters** ``phys_addr_t size`` size of memory block to be allocated in bytes ``phys_addr_t align`` alignment of the region and block's size ``phys_addr_t min_addr`` the lower bound of the memory region from where the allocation is preferred (phys address) ``phys_addr_t max_addr`` the upper bound of the memory region from where the allocation is preferred (phys address), or ``MEMBLOCK_ALLOC_ACCESSIBLE`` to allocate only from memory limited by memblock.current_limit value ``int nid`` nid of the free area to find, ``NUMA_NO_NODE`` for any node **Description** Public function, provides additional debug information (including caller info), if enabled. Does not zero allocated memory. **Return** Virtual address of allocated memory block on success, NULL on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMBhjubj)}(hhh](j)}(hC``phys_addr_t size`` size of memory block to be allocated in bytes h](j)}(h``phys_addr_t size``h]h)}(hjh]hphys_addr_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM@hjubj3)}(hhh]h)}(h-size of memory block to be allocated in bytesh]h-size of memory block to be allocated in bytes}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hM@hj,ubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhj+hM@hj ubj)}(h?``phys_addr_t align`` alignment of the region and block's size h](j)}(h``phys_addr_t align``h]h)}(hjOh]hphys_addr_t align}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMAhjIubj3)}(hhh]h)}(h(alignment of the region and block's sizeh]h*alignment of the region and block’s size}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMAhjeubah}(h]h ]h"]h$]h&]uh1j2hjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMAhj ubj)}(ht``phys_addr_t min_addr`` the lower bound of the memory region from where the allocation is preferred (phys address) h](j)}(h``phys_addr_t min_addr``h]h)}(hjh]hphys_addr_t min_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMChjubj3)}(hhh]h)}(hZthe lower bound of the memory region from where the allocation is preferred (phys address)h]hZthe lower bound of the memory region from where the allocation is preferred (phys address)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMBhjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhMChj ubj)}(h``phys_addr_t max_addr`` the upper bound of the memory region from where the allocation is preferred (phys address), or ``MEMBLOCK_ALLOC_ACCESSIBLE`` to allocate only from memory limited by memblock.current_limit value h](j)}(h``phys_addr_t max_addr``h]h)}(hjŒh]hphys_addr_t max_addr}(hjČhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMFhjubj3)}(hhh]h)}(hthe upper bound of the memory region from where the allocation is preferred (phys address), or ``MEMBLOCK_ALLOC_ACCESSIBLE`` to allocate only from memory limited by memblock.current_limit valueh](h_the upper bound of the memory region from where the allocation is preferred (phys address), or }(hjیhhhNhNubh)}(h``MEMBLOCK_ALLOC_ACCESSIBLE``h]hMEMBLOCK_ALLOC_ACCESSIBLE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjیubhE to allocate only from memory limited by memblock.current_limit value}(hjیhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMDhj،ubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhj׌hMFhj ubj)}(hH``int nid`` nid of the free area to find, ``NUMA_NO_NODE`` for any node h](j)}(h ``int nid``h]h)}(hjh]hint nid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMGhjubj3)}(hhh]h)}(h;nid of the free area to find, ``NUMA_NO_NODE`` for any nodeh](hnid of the free area to find, }(hj'hhhNhNubh)}(h``NUMA_NO_NODE``h]h NUMA_NO_NODE}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ubh for any node}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj#hMGhj$ubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhj#hMGhj ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj[h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMIhjubh)}(h{Public function, provides additional debug information (including caller info), if enabled. Does not zero allocated memory.h]h{Public function, provides additional debug information (including caller info), if enabled. Does not zero allocated memory.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMIhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMLhjubh)}(hFVirtual address of allocated memory block on success, NULL on failure.h]hFVirtual address of allocated memory block on success, NULL on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMLhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\'memblock_alloc_try_nid_raw (C function)c.memblock_alloc_try_nid_rawhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(h|void * memblock_alloc_try_nid_raw (phys_addr_t size, phys_addr_t align, phys_addr_t min_addr, phys_addr_t max_addr, int nid)h]jl)}(hzvoid *memblock_alloc_try_nid_raw(phys_addr_t size, phys_addr_t align, phys_addr_t min_addr, phys_addr_t max_addr, int nid)h](jF)}(hvoidh]hvoid}(hjǍhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjÍhhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMoubj)}(h h]h }(hj֍hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÍhhhjՍhMoubjI!)}(hj$h]h*}(hjhhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjÍhhhjՍhMoubj)}(hmemblock_alloc_try_nid_rawh]j)}(hmemblock_alloc_try_nid_rawh]hmemblock_alloc_try_nid_raw}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjÍhhhjՍhMoubj~)}(hZ(phys_addr_t size, phys_addr_t align, phys_addr_t min_addr, phys_addr_t max_addr, int nid)h](j)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.memblock_alloc_try_nid_rawasbuh1hhj ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hsizeh]hsize}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hphys_addr_t alignh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj`modnameN classnameNjj)}j]j0c.memblock_alloc_try_nid_rawasbuh1hhjWubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(halignh]halign}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hphys_addr_t min_addrh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjmodnameN classnameNjj)}j]j0c.memblock_alloc_try_nid_rawasbuh1hhjubj)}(h h]h }(hjĎhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmin_addrh]hmin_addr}(hjҎhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hphys_addr_t max_addrh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjmodnameN classnameNjj)}j]j0c.memblock_alloc_try_nid_rawasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmax_addrh]hmax_addr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hint nidh](jF)}(hinth]hint}(hj3hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj/ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hnidh]hnid}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1j}hjÍhhhjՍhMoubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjhhhjՍhMoubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jehjՍhMohjhhubj)}(hhh]h)}(hGallocate boot memory block without zeroing memory and without panickingh]hGallocate boot memory block without zeroing memory and without panicking}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM]hjvhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjՍhMoubeh}(h]h ](hfunctioneh"]h$]h&]jhjjjjjjjuh1j`hhhj0hNhNubj)}(hXM**Parameters** ``phys_addr_t size`` size of memory block to be allocated in bytes ``phys_addr_t align`` alignment of the region and block's size ``phys_addr_t min_addr`` the lower bound of the memory region from where the allocation is preferred (phys address) ``phys_addr_t max_addr`` the upper bound of the memory region from where the allocation is preferred (phys address), or ``MEMBLOCK_ALLOC_ACCESSIBLE`` to allocate only from memory limited by memblock.current_limit value ``int nid`` nid of the free area to find, ``NUMA_NO_NODE`` for any node **Description** Public function, provides additional debug information (including caller info), if enabled. Does not zero allocated memory, does not panic if request cannot be satisfied. **Return** Virtual address of allocated memory block on success, NULL on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMahjubj)}(hhh](j)}(hC``phys_addr_t size`` size of memory block to be allocated in bytes h](j)}(h``phys_addr_t size``h]h)}(hjh]hphys_addr_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM_hjubj3)}(hhh]h)}(h-size of memory block to be allocated in bytesh]h-size of memory block to be allocated in bytes}(hjӏhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjϏhM_hjЏubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjϏhM_hjubj)}(h?``phys_addr_t align`` alignment of the region and block's size h](j)}(h``phys_addr_t align``h]h)}(hjh]hphys_addr_t align}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM`hjubj3)}(hhh]h)}(h(alignment of the region and block's sizeh]h*alignment of the region and block’s size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM`hj ubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjubj)}(ht``phys_addr_t min_addr`` the lower bound of the memory region from where the allocation is preferred (phys address) h](j)}(h``phys_addr_t min_addr``h]h)}(hj,h]hphys_addr_t min_addr}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMbhj&ubj3)}(hhh]h)}(hZthe lower bound of the memory region from where the allocation is preferred (phys address)h]hZthe lower bound of the memory region from where the allocation is preferred (phys address)}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMahjBubah}(h]h ]h"]h$]h&]uh1j2hj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMbhjubj)}(h``phys_addr_t max_addr`` the upper bound of the memory region from where the allocation is preferred (phys address), or ``MEMBLOCK_ALLOC_ACCESSIBLE`` to allocate only from memory limited by memblock.current_limit value h](j)}(h``phys_addr_t max_addr``h]h)}(hjfh]hphys_addr_t max_addr}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMehj`ubj3)}(hhh]h)}(hthe upper bound of the memory region from where the allocation is preferred (phys address), or ``MEMBLOCK_ALLOC_ACCESSIBLE`` to allocate only from memory limited by memblock.current_limit valueh](h_the upper bound of the memory region from where the allocation is preferred (phys address), or }(hjhhhNhNubh)}(h``MEMBLOCK_ALLOC_ACCESSIBLE``h]hMEMBLOCK_ALLOC_ACCESSIBLE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubhE to allocate only from memory limited by memblock.current_limit value}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMchj|ubah}(h]h ]h"]h$]h&]uh1j2hj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMehjubj)}(hH``int nid`` nid of the free area to find, ``NUMA_NO_NODE`` for any node h](j)}(h ``int nid``h]h)}(hjh]hint nid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMfhjubj3)}(hhh]h)}(h;nid of the free area to find, ``NUMA_NO_NODE`` for any nodeh](hnid of the free area to find, }(hjːhhhNhNubh)}(h``NUMA_NO_NODE``h]h NUMA_NO_NODE}(hjӐhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjːubh for any node}(hjːhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjǐhMfhjȐubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjǐhMfhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhhjubh)}(hPublic function, provides additional debug information (including caller info), if enabled. Does not zero allocated memory, does not panic if request cannot be satisfied.h]hPublic function, provides additional debug information (including caller info), if enabled. Does not zero allocated memory, does not panic if request cannot be satisfied.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhhjubh)}(h **Return**h]j)}(hj&h]hReturn}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMlhjubh)}(hFVirtual address of allocated memory block on success, NULL on failure.h]hFVirtual address of allocated memory block on success, NULL on failure.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMlhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\#memblock_alloc_try_nid (C function)c.memblock_alloc_try_nidhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hxvoid * memblock_alloc_try_nid (phys_addr_t size, phys_addr_t align, phys_addr_t min_addr, phys_addr_t max_addr, int nid)h]jl)}(hvvoid *memblock_alloc_try_nid(phys_addr_t size, phys_addr_t align, phys_addr_t min_addr, phys_addr_t max_addr, int nid)h](jF)}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjghhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhjyhMubjI!)}(hj$h]h*}(hjhhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjghhhjyhMubj)}(hmemblock_alloc_try_nidh]j)}(hmemblock_alloc_try_nidh]hmemblock_alloc_try_nid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhjghhhjyhMubj~)}(hZ(phys_addr_t size, phys_addr_t align, phys_addr_t min_addr, phys_addr_t max_addr, int nid)h](j)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.memblock_alloc_try_nidasbuh1hhjubj)}(h h]h }(hjؑhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hphys_addr_t alignh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjmodnameN classnameNjj)}j]jԑc.memblock_alloc_try_nidasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(halignh]halign}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hphys_addr_t min_addrh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjLmodnameN classnameNjj)}j]jԑc.memblock_alloc_try_nidasbuh1hhjCubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hmin_addrh]hmin_addr}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hphys_addr_t max_addrh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjmodnameN classnameNjj)}j]jԑc.memblock_alloc_try_nidasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmax_addrh]hmax_addr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint nidh](jF)}(hinth]hint}(hjגhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjӒubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӒubj)}(hnidh]hnid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӒubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1j}hjghhhjyhMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjchhhjyhMubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1jehjyhMhj`hhubj)}(hhh]h)}(hallocate boot memory blockh]hallocate boot memory block}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM}hjhhubah}(h]h ]h"]h$]h&]uh1jhj`hhhjyhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjj5jj5jjjuh1j`hhhj0hNhNubj)}(hX)**Parameters** ``phys_addr_t size`` size of memory block to be allocated in bytes ``phys_addr_t align`` alignment of the region and block's size ``phys_addr_t min_addr`` the lower bound of the memory region from where the allocation is preferred (phys address) ``phys_addr_t max_addr`` the upper bound of the memory region from where the allocation is preferred (phys address), or ``MEMBLOCK_ALLOC_ACCESSIBLE`` to allocate only from memory limited by memblock.current_limit value ``int nid`` nid of the free area to find, ``NUMA_NO_NODE`` for any node **Description** Public function, provides additional debug information (including caller info), if enabled. This function zeroes the allocated memory. **Return** Virtual address of allocated memory block on success, NULL on failure.h](h)}(h**Parameters**h]j)}(hj?h]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj9ubj)}(hhh](j)}(hC``phys_addr_t size`` size of memory block to be allocated in bytes h](j)}(h``phys_addr_t size``h]h)}(hj^h]hphys_addr_t size}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM~hjXubj3)}(hhh]h)}(h-size of memory block to be allocated in bytesh]h-size of memory block to be allocated in bytes}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshM~hjtubah}(h]h ]h"]h$]h&]uh1j2hjXubeh}(h]h ]h"]h$]h&]uh1jhjshM~hjUubj)}(h?``phys_addr_t align`` alignment of the region and block's size h](j)}(h``phys_addr_t align``h]h)}(hjh]hphys_addr_t align}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubj3)}(hhh]h)}(h(alignment of the region and block's sizeh]h*alignment of the region and block’s size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjUubj)}(ht``phys_addr_t min_addr`` the lower bound of the memory region from where the allocation is preferred (phys address) h](j)}(h``phys_addr_t min_addr``h]h)}(hjГh]hphys_addr_t min_addr}(hjғhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjΓubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjʓubj3)}(hhh]h)}(hZthe lower bound of the memory region from where the allocation is preferred (phys address)h]hZthe lower bound of the memory region from where the allocation is preferred (phys address)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubah}(h]h ]h"]h$]h&]uh1j2hjʓubeh}(h]h ]h"]h$]h&]uh1jhjhMhjUubj)}(h``phys_addr_t max_addr`` the upper bound of the memory region from where the allocation is preferred (phys address), or ``MEMBLOCK_ALLOC_ACCESSIBLE`` to allocate only from memory limited by memblock.current_limit value h](j)}(h``phys_addr_t max_addr``h]h)}(hj h]hphys_addr_t max_addr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubj3)}(hhh]h)}(hthe upper bound of the memory region from where the allocation is preferred (phys address), or ``MEMBLOCK_ALLOC_ACCESSIBLE`` to allocate only from memory limited by memblock.current_limit valueh](h_the upper bound of the memory region from where the allocation is preferred (phys address), or }(hj#hhhNhNubh)}(h``MEMBLOCK_ALLOC_ACCESSIBLE``h]hMEMBLOCK_ALLOC_ACCESSIBLE}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#ubhE to allocate only from memory limited by memblock.current_limit value}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj ubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjUubj)}(hH``int nid`` nid of the free area to find, ``NUMA_NO_NODE`` for any node h](j)}(h ``int nid``h]h)}(hjVh]hint nid}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjPubj3)}(hhh]h)}(h;nid of the free area to find, ``NUMA_NO_NODE`` for any nodeh](hnid of the free area to find, }(hjohhhNhNubh)}(h``NUMA_NO_NODE``h]h NUMA_NO_NODE}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjoubh for any node}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjkhMhjlubah}(h]h ]h"]h$]h&]uh1j2hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjUubeh}(h]h ]h"]h$]h&]uh1j hj9ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj9ubh)}(hPublic function, provides additional debug information (including caller info), if enabled. This function zeroes the allocated memory.h]hPublic function, provides additional debug information (including caller info), if enabled. This function zeroes the allocated memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj9ubh)}(h **Return**h]j)}(hjʔh]hReturn}(hj̔hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȔubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj9ubh)}(hFVirtual address of allocated memory block on success, NULL on failure.h]hFVirtual address of allocated memory block on success, NULL on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\&__memblock_alloc_or_panic (C function)c.__memblock_alloc_or_panichNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hXvoid * __memblock_alloc_or_panic (phys_addr_t size, phys_addr_t align, const char *func)h]jl)}(hVvoid *__memblock_alloc_or_panic(phys_addr_t size, phys_addr_t align, const char *func)h](jF)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj hhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMubjI!)}(hj$h]h*}(hj,hhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hj hhhjhMubj)}(h__memblock_alloc_or_panich]j)}(h__memblock_alloc_or_panich]h__memblock_alloc_or_panic}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj hhhjhMubj~)}(h7(phys_addr_t size, phys_addr_t align, const char *func)h](j)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj^modnameN classnameNjj)}j]j)}jj?sbc.__memblock_alloc_or_panicasbuh1hhjUubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hphys_addr_t alignh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjmodnameN classnameNjj)}j]jxc.__memblock_alloc_or_panicasbuh1hhjubj)}(h h]h }(hjĕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(halignh]halign}(hjҕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hconst char *funch](jr)}(hj h]hconst}(hjhhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjI!)}(hj$h]h*}(hj"hhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjubj)}(hfunch]hfunc}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubeh}(h]h ]h"]h$]h&]jjuh1j}hj hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jehjhMhjhhubj)}(hhh]h)}(h+Try to allocate memory and panic on failureh]h+Try to allocate memory and panic on failure}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjVhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjqjjqjjjuh1j`hhhj0hNhNubj)}(hX**Parameters** ``phys_addr_t size`` size of memory block to be allocated in bytes ``phys_addr_t align`` alignment of the region and block's size ``const char *func`` caller func name **Description** This function attempts to allocate memory using memblock_alloc, and in case of failure, it calls panic with the formatted message. This function should not be used directly, please use the macro memblock_alloc_or_panic.h](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjuubj)}(hhh](j)}(hC``phys_addr_t size`` size of memory block to be allocated in bytes h](j)}(h``phys_addr_t size``h]h)}(hjh]hphys_addr_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubj3)}(hhh]h)}(h-size of memory block to be allocated in bytesh]h-size of memory block to be allocated in bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h?``phys_addr_t align`` alignment of the region and block's size h](j)}(h``phys_addr_t align``h]h)}(hjӖh]hphys_addr_t align}(hjՖhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjіubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj͖ubj3)}(hhh]h)}(h(alignment of the region and block's sizeh]h*alignment of the region and block’s size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j2hj͖ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h&``const char *func`` caller func name h](j)}(h``const char *func``h]h)}(hj h]hconst char *func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubj3)}(hhh]h)}(hcaller func nameh]hcaller func name}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubeh}(h]h ]h"]h$]h&]uh1j hjuubh)}(h**Description**h]j)}(hjGh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjuubh)}(hThis function attempts to allocate memory using memblock_alloc, and in case of failure, it calls panic with the formatted message. This function should not be used directly, please use the macro memblock_alloc_or_panic.h]hThis function attempts to allocate memory using memblock_alloc, and in case of failure, it calls panic with the formatted message. This function should not be used directly, please use the macro memblock_alloc_or_panic.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\memblock_free_late (C function)c.memblock_free_latehNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hAn estimated number of free pages from memblock point of view.h]h>An estimated number of free pages from memblock point of view.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\&memblock_is_region_memory (C function)c.memblock_is_region_memoryhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hSbool __init_memblock memblock_is_region_memory (phys_addr_t base, phys_addr_t size)h]jl)}(hRbool __init_memblock memblock_is_region_memory(phys_addr_t base, phys_addr_t size)h](jF)}(hj Oh]hbool}(hjњhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj͚hhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMubj)}(h h]h }(hjߚhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͚hhhjޚhMubh__init_memblock}(hj͚hhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͚hhhjޚhMubj)}(hmemblock_is_region_memoryh]j)}(hmemblock_is_region_memoryh]hmemblock_is_region_memory}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj͚hhhjޚhMubj~)}(h$(phys_addr_t base, phys_addr_t size)h](j)}(hphys_addr_t baseh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetj$modnameN classnameNjj)}j]j)}jjsbc.memblock_is_region_memoryasbuh1hhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbaseh]hbase}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjnmodnameN classnameNjj)}j]j>c.memblock_is_region_memoryasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1j}hj͚hhhjޚhMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjɚhhhjޚhMubah}(h]jĚah ](jjeh"]h$]h&]jj)jhuh1jehjޚhMhjƚhhubj)}(hhh]h)}(h'check if a region is a subset of memoryh]h'check if a region is a subset of memory}(hj›hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjƚhhhjޚhMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjڛjjڛjjjuh1j`hhhj0hNhNubj)}(h**Parameters** ``phys_addr_t base`` base of region to check ``phys_addr_t size`` size of region to check **Description** Check if the region [**base**, **base** + **size**) is a subset of a memory block. **Return** 0 if false, non-zero if trueh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjޛubj)}(hhh](j)}(h-``phys_addr_t base`` base of region to check h](j)}(h``phys_addr_t base``h]h)}(hjh]hphys_addr_t base}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubj3)}(hhh]h)}(hbase of region to checkh]hbase of region to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h-``phys_addr_t size`` size of region to check h](j)}(h``phys_addr_t size``h]h)}(hj<h]hphys_addr_t size}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj6ubj3)}(hhh]h)}(hsize of region to checkh]hsize of region to check}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1j2hj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjubeh}(h]h ]h"]h$]h&]uh1j hjޛubh)}(h**Description**h]j)}(hjwh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjޛubh)}(hRCheck if the region [**base**, **base** + **size**) is a subset of a memory block.h](hCheck if the region [}(hjhhhNhNubj)}(h**base**h]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**base**h]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ) is a subset of a memory block.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjޛubh)}(h **Return**h]j)}(hjԜh]hReturn}(hj֜hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҜubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjޛubh)}(h0 if false, non-zero if trueh]h0 if false, non-zero if true}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjޛubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\(memblock_is_region_reserved (C function)c.memblock_is_region_reservedhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hUbool __init_memblock memblock_is_region_reserved (phys_addr_t base, phys_addr_t size)h]jl)}(hTbool __init_memblock memblock_is_region_reserved(phys_addr_t base, phys_addr_t size)h](jF)}(hj Oh]hbool}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj&hMubh__init_memblock}(hjhhhNhNubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj&hMubj)}(hmemblock_is_region_reservedh]j)}(hmemblock_is_region_reservedh]hmemblock_is_region_reserved}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jhjhhhj&hMubj~)}(h$(phys_addr_t base, phys_addr_t size)h](j)}(hphys_addr_t baseh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjlmodnameN classnameNjj)}j]j)}jjMsbc.memblock_is_region_reservedasbuh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(hphys_addr_t sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjmodnameN classnameNjj)}j]jc.memblock_is_region_reservedasbuh1hhjubj)}(h h]h }(hjҝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubeh}(h]h ]h"]h$]h&]jjuh1j}hjhhhj&hMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjhhhj&hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jehj&hMhjhhubj)}(hhh]h)}(h,check if a region intersects reserved memoryh]h,check if a region intersects reserved memory}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj&hMubeh}(h]h ](hfunctioneh"]h$]h&]jhjj"jj"jjjuh1j`hhhj0hNhNubj)}(hX **Parameters** ``phys_addr_t base`` base of region to check ``phys_addr_t size`` size of region to check **Description** Check if the region [**base**, **base** + **size**) intersects a reserved memory block. **Return** True if they intersect, false if not.h](h)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj&ubj)}(hhh](j)}(h-``phys_addr_t base`` base of region to check h](j)}(h``phys_addr_t base``h]h)}(hjKh]hphys_addr_t base}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjEubj3)}(hhh]h)}(hbase of region to checkh]hbase of region to check}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1j2hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjBubj)}(h-``phys_addr_t size`` size of region to check h](j)}(h``phys_addr_t size``h]h)}(hjh]hphys_addr_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj~ubj3)}(hhh]h)}(hsize of region to checkh]hsize of region to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j2hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjBubeh}(h]h ]h"]h$]h&]uh1j hj&ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj&ubh)}(hWCheck if the region [**base**, **base** + **size**) intersects a reserved memory block.h](hCheck if the region [}(hj՞hhhNhNubj)}(h**base**h]hbase}(hjݞhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj՞ubh, }(hj՞hhhNhNubj)}(h**base**h]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj՞ubh + }(hj՞hhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj՞ubh%) intersects a reserved memory block.}(hj՞hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj&ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj&ubh)}(h%True if they intersect, false if not.h]h%True if they intersect, false if not.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\memblock_free_all (C function)c.memblock_free_allhNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hvoid memblock_free_all (void)h]jl)}(hvoid memblock_free_all(void)h](jF)}(hvoidh]hvoid}(hjahhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj]hhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhjohMubj)}(hmemblock_free_allh]j)}(hmemblock_free_allh]hmemblock_free_all}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jhj]hhhjohMubj~)}(h(void)h]j)}(hvoidh]jF)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1j}hj]hhhjohMubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhjYhhhjohMubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1jehjohMhjVhhubj)}(hhh]h)}(h)release free pages to the buddy allocatorh]h)release free pages to the buddy allocator}(hjȟhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjşhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjohMubeh}(h]h ](hfunctioneh"]h$]h&]jhjjjjjjjuh1j`hhhj0hNhNubj)}(h'**Parameters** ``void`` no argumentsh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubj)}(hhh]j)}(h``void`` no argumentsh](j)}(h``void``h]h)}(hj h]hvoid}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubj3)}(hhh]h)}(h no argumentsh]h no arguments}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chMhjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\%reserve_mem_find_by_name (C function)c.reserve_mem_find_by_namehNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(hVint reserve_mem_find_by_name (const char *name, phys_addr_t *start, phys_addr_t *size)h]jl)}(hUint reserve_mem_find_by_name(const char *name, phys_addr_t *start, phys_addr_t *size)h](jF)}(hinth]hint}(hjchhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj_hhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhjqhM ubj)}(hreserve_mem_find_by_nameh]j)}(hreserve_mem_find_by_nameh]hreserve_mem_find_by_name}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhj_hhhjqhM ubj~)}(h9(const char *name, phys_addr_t *start, phys_addr_t *size)h](j)}(hconst char *nameh](jr)}(hj h]hconst}(hjhhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubj)}(h h]h }(hjɠhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjI!)}(hj$h]h*}(hjנhhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hphys_addr_t *starth](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.reserve_mem_find_by_nameasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjI!)}(hj$h]h*}(hj.hhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjubj)}(hstarth]hstart}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hphys_addr_t *sizeh](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainhreftypej reftargetjYmodnameN classnameNjj)}j]jc.reserve_mem_find_by_nameasbuh1hhjPubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjI!)}(hj$h]h*}(hjhhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjPubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1j}hj_hhhjqhM ubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhj[hhhjqhM ubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1jehjqhM hjXhhubj)}(hhh]h)}(h-Find reserved memory region with a given nameh]h-Find reserved memory region with a given name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjqhM ubeh}(h]h ](hfunctioneh"]h$]h&]jhjjҡjjҡjjjuh1j`hhhj0hNhNubj)}(hXU**Parameters** ``const char *name`` The name that is attached to a reserved memory region ``phys_addr_t *start`` If found, holds the start address ``phys_addr_t *size`` If found, holds the size of the address. **Description** **start** and **size** are only updated if **name** is found. **Return** 1 if found or 0 if not found.h](h)}(h**Parameters**h]j)}(hjܡh]h Parameters}(hjޡhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڡubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM hj֡ubj)}(hhh](j)}(hK``const char *name`` The name that is attached to a reserved memory region h](j)}(h``const char *name``h]h)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM hjubj3)}(hhh]h)}(h5The name that is attached to a reserved memory regionh]h5The name that is attached to a reserved memory region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h9``phys_addr_t *start`` If found, holds the start address h](j)}(h``phys_addr_t *start``h]h)}(hj4h]hphys_addr_t *start}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM hj.ubj3)}(hhh]h)}(h!If found, holds the start addressh]h!If found, holds the start address}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM hjJubah}(h]h ]h"]h$]h&]uh1j2hj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhM hjubj)}(h?``phys_addr_t *size`` If found, holds the size of the address. h](j)}(h``phys_addr_t *size``h]h)}(hjmh]hphys_addr_t *size}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM hjgubj3)}(hhh]h)}(h(If found, holds the size of the address.h]h(If found, holds the size of the address.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j2hjgubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1j hj֡ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM hj֡ubh)}(h=**start** and **size** are only updated if **name** is found.h](j)}(h **start**h]hstart}(hj¢hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**size**h]hsize}(hjԢhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh are only updated if }(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is found.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM hj֡ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM hj֡ubh)}(h1 if found or 0 if not found.h]h1 if found or 0 if not found.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM hj֡ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubjP)}(hhh]h}(h]h ]h"]h$]h&]entries](j\(reserve_mem_release_by_name (C function)c.reserve_mem_release_by_namehNtauh1jOhj0hhhNhNubja)}(hhh](jf)}(h2int reserve_mem_release_by_name (const char *name)h]jl)}(h1int reserve_mem_release_by_name(const char *name)h](jF)}(hinth]hint}(hjFhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjBhhhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM0 ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjThM0 ubj)}(hreserve_mem_release_by_nameh]j)}(hreserve_mem_release_by_nameh]hreserve_mem_release_by_name}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jhjBhhhjThM0 ubj~)}(h(const char *name)h]j)}(hconst char *nameh](jr)}(hj h]hconst}(hjhhhNhNubah}(h]h ]j~ah"]h$]h&]uh1jqhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjF)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjI!)}(hj$h]h*}(hjhhhNhNubah}(h]h ]jT!ah"]h$]h&]uh1jH!hjubj)}(hnameh]hname}(hjǣhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubah}(h]h ]h"]h$]h&]jjuh1j}hjBhhhjThM0 ubeh}(h]h ]h"]h$]h&]jjjuh1jkjjhj>hhhjThM0 ubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1jehjThM0 hj;hhubj)}(hhh]h)}(h0Release reserved memory region with a given nameh]h0Release reserved memory region with a given name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM( hjhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjThM0 ubeh}(h]h ](hfunctioneh"]h$]h&]jhjj jj jjjuh1j`hhhj0hNhNubj)}(hX:**Parameters** ``const char *name`` The name that is attatched to a reserved memory region **Description** Forcibly release the pages in the reserved memory region so that those memory can be used as free memory. After released the reserved region size becomes 0. **Return** 1 if released or 0 if not found.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM, hj ubj)}(hhh]j)}(hL``const char *name`` The name that is attatched to a reserved memory region h](j)}(h``const char *name``h]h)}(hj2h]hconst char *name}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM) hj,ubj3)}(hhh]h)}(h6The name that is attatched to a reserved memory regionh]h6The name that is attatched to a reserved memory region}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM) hjHubah}(h]h ]h"]h$]h&]uh1j2hj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhM) hj)ubah}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjmh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM+ hj ubh)}(hForcibly release the pages in the reserved memory region so that those memory can be used as free memory. After released the reserved region size becomes 0.h]hForcibly release the pages in the reserved memory region so that those memory can be used as free memory. After released the reserved region size becomes 0.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM+ hj ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM. hj ubh)}(h 1 if released or 0 if not found.h]h 1 if released or 0 if not found.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/boot-time-mm:40: ./mm/memblock.chM. hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj0hhhNhNubeh}(h]functions-and-structuresah ]h"]functions and structuresah$]h&]uh1hhhhhhhhKubeh}(h]boot-time-memory-managementah ]h"]boot time memory managementah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jͤjʤj-j*jŤj¤u nametypes}(jͤj-jŤuh}(jʤhj*jOj¤j0j^jgjjjAjFj. j3 j j j j jLjQjjjmjrjjjwj|jjjrjwjjj8j=jz j j6"j;"j#j#j%j%j^'jc'jB(jG(j&)j+)j-j-j1j1jy6j~6j9j9j:j:j=j=j@j@j?EjDEj_IjdIjLjLjNjOjPjPjTjTjVjVjXjXje\jj\jQ^jV^j=`jB`j)bj.bjdjdjsfjxfjhjhjnjnj{tjtjwjxjj{jo{jjj@jEjjjjjjj^jcjjjjjYj^jĚjɚj jjTjYjVj[j9j>u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.