Function report |
Source Code:mm\mempolicy.c |
Create Date:2022-07-28 15:31:58 |
Last Modify:2020-03-17 22:28:11 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_mbind
Proto:static long do_mbind(unsigned long start, unsigned long len, unsigned short mode, unsigned short mode_flags, nodemask_t *nmask, unsigned long flags)
Type:long
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | start | |
unsigned long | len | |
unsigned short | mode | |
unsigned short | mode_flags | |
nodemask_t * | nmask | |
unsigned long | flags |
1243 | If flags & ~MPOL_MF_VALID Then Return -EINVAL |
1245 | If flags & Move every page to conform to policy && Not Check operation authority Then Return -EPERM |
1251 | If mode == MPOL_DEFAULT Then flags &= ~Verify existing pages in the mapping |
1262 | new = This function just creates a new policy, does some check and simple* initialization. You must invoke mpol_set_nodemask() to set nodes. |
1266 | If flags & Modifies '_MOVE: lazy migrate on fault Then See set_mempolicy() MPOL_F_* above |= his policy wants migrate on fault |
1273 | If Not new Then flags |= Skip checks for continuous vmas |
1276 | pr_debug("mbind %lx-%lx mode:%d flags:%d nodes:%lx\n", start, start + len, mode, mode_flags, nmask ? nodes_addr( * nmask)[0] : NUMA_NO_NODE) |
1287 | NODEMASK_SCRATCH(scratch) |
1288 | If scratch Then |
1289 | lock for writing |
1292 | task_unlock(current process) |
1293 | If err Then lease a write lock |
1297 | NODEMASK_SCRATCH_FREE(scratch) |
1305 | If ret < 0 Then |
1312 | If Not err Then |
1313 | nr_failed = 0 |
1315 | If Not list_empty - tests whether a list is empty*@head: the list to test. Then |
1325 | Else |
1326 | up_out : |
1331 | lease a write lock |
1332 | mpol_out : |
1334 | Return err |
Name | Describe |
---|---|
kernel_mbind |
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 |