mirror of
https://github.com/0xAX/linux-insides.git
synced 2025-06-25 04:32:32 +00:00
Update linux-mm-1.md
This commit is contained in:
parent
859d98c037
commit
d25316c600
@ -124,7 +124,7 @@ Here we can see initialization of the `memblock` structure which has the same na
|
|||||||
|
|
||||||
You can see that it depends on `CONFIG_ARCH_DISCARD_MEMBLOCK`. If this configuration option is enabled, memblock code will be put into the `.init` section and will be released after the kernel is booted up.
|
You can see that it depends on `CONFIG_ARCH_DISCARD_MEMBLOCK`. If this configuration option is enabled, memblock code will be put into the `.init` section and will be released after the kernel is booted up.
|
||||||
|
|
||||||
Next we can see the initialization of the `memblock_type memory`, `memblock_type reserved` and `memblock_type physmem` fields of the `memblock` structure. Here we are interested only in the `memblock_type.regions` initialization process. Note that every `memblock_type` field is initialized by and array of `memblock_region`s:
|
Next we can see the initialization of the `memblock_type memory`, `memblock_type reserved` and `memblock_type physmem` fields of the `memblock` structure. Here we are interested only in the `memblock_type.regions` initialization process. Note that every `memblock_type` field is initialized by an array of `memblock_region`s:
|
||||||
|
|
||||||
```C
|
```C
|
||||||
static struct memblock_region memblock_memory_init_regions[INIT_MEMBLOCK_REGIONS] __initdata_memblock;
|
static struct memblock_region memblock_memory_init_regions[INIT_MEMBLOCK_REGIONS] __initdata_memblock;
|
||||||
|
Loading…
Reference in New Issue
Block a user