mirror of
https://github.com/0xAX/linux-insides.git
synced 2025-01-03 04:10:56 +00:00
Quote the correct enum values for the flags
This commit is contained in:
parent
e3d4994fa8
commit
46851a50c6
@ -55,9 +55,12 @@ struct memblock_region {
|
|||||||
`memblock_region` provides the base address and size of the memory region as well as a flags field which can have the following values:
|
`memblock_region` provides the base address and size of the memory region as well as a flags field which can have the following values:
|
||||||
|
|
||||||
```C
|
```C
|
||||||
#define MEMBLOCK_ALLOC_ANYWHERE (~(phys_addr_t)0)
|
enum {
|
||||||
#define MEMBLOCK_ALLOC_ACCESSIBLE 0
|
MEMBLOCK_NONE = 0x0, /* No special request */
|
||||||
#define MEMBLOCK_HOTPLUG 0x1
|
MEMBLOCK_HOTPLUG = 0x1, /* hotpluggable region */
|
||||||
|
MEMBLOCK_MIRROR = 0x2, /* mirrored region */
|
||||||
|
MEMBLOCK_NOMAP = 0x4, /* don't add to kernel direct mapping */
|
||||||
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
Also `memblock_region` provides an integer field - [numa](http://en.wikipedia.org/wiki/Non-uniform_memory_access) node selector, if the `CONFIG_HAVE_MEMBLOCK_NODE_MAP` configuration option is enabled.
|
Also `memblock_region` provides an integer field - [numa](http://en.wikipedia.org/wiki/Non-uniform_memory_access) node selector, if the `CONFIG_HAVE_MEMBLOCK_NODE_MAP` configuration option is enabled.
|
||||||
|
Loading…
Reference in New Issue
Block a user