Function report |
Source Code:mm\mempolicy.c |
Create Date:2022-07-28 15:31:46 |
Last Modify:2020-03-17 22:28:11 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Move pages between the two nodesets so as to preserve the physical* layout as much as possible.* Returns the number of page that could not be moved.
Proto:int do_migrate_pages(struct mm_struct *mm, const nodemask_t *from, const nodemask_t *to, int flags)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct mm_struct * | mm | |
const nodemask_t * | from | |
const nodemask_t * | to | |
int | flags |
1077 | busy = 0 |
1085 | lock for reading |
1119 | When Not nodes_empty(tmp) cycle |
1121 | source = NUMA_NO_NODE |
1122 | dest = 0 |
1141 | If nodes_weight( * from) != nodes_weight( * to) && No static inline type checking - see Subtlety (1) above. (s, * to) Then Continue |
1145 | d = node_remap(s, * from, * to) |
1153 | If Not No static inline type checking - see Subtlety (1) above. (dest, tmp) Then Break |
1156 | If source == NUMA_NO_NODE Then Break |
1159 | node_clear(source, tmp) |
1160 | err = Migrate pages from one node to a target node.* Returns error or the number of pages not migrated. |
1163 | If err < 0 Then Break |
1166 | lease a read lock |
1169 | Return busy |
Name | Describe |
---|---|
kernel_migrate_pages | |
cpuset_migrate_mm_workfn |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |