Browse Source

Merge pull request #760 from uchin0704/master

linux-datastuctures-2.md:correct some descriptions
0xAX 4 years ago
parent
commit
0aa5896e5f
1 changed files with 4 additions and 4 deletions
  1. 4 4
      DataStructures/linux-datastructures-2.md

+ 4 - 4
DataStructures/linux-datastructures-2.md

@@ -61,11 +61,11 @@ This structure presents the root of a radix tree and contains three fields:
 
 The first field we will discuss is `gfp_mask`:
 
-Low-level kernel memory allocation functions take a set of flags as - `gfp_mask`, which describes how that allocation is to be performed. These `GFP_` flags which control the allocation process can have following values: (`GFP_NOIO` flag) means sleep and wait for memory, (`__GFP_HIGHMEM` flag) means high memory can be used, (`GFP_ATOMIC` flag) means the allocation process has high-priority and can't sleep etc.
+Low-level kernel memory allocation functions take a set of flags as - `gfp_mask`, which describes how that allocation is to be performed. These `GFP_` flags which control the allocation process can have following values: (`GFP_NOIO` flag) means allocation can block but must not initiate disk I/O; (`__GFP_HIGHMEM` flag) means either ZONE_HIGHMEM or ZONE_NORMAL memory can be used; (`GFP_ATOMIC` flag) means the allocation is high-priority and must not sleep, etc.
 
-* `GFP_NOIO` - can sleep and wait for memory;
-* `__GFP_HIGHMEM` - high memory can be used;
-* `GFP_ATOMIC` - allocation process is high-priority and can't sleep;
+* `GFP_NOIO` - allcation can block but must not initiate disk I/O;
+* `__GFP_HIGHMEM` - either ZONE_HIGHMEM or ZONE_NORMAL can be used;
+* `GFP_ATOMIC` - allocation process is high-priority and must not sleep;
 
 etc.