| Function report | 
| Source Code: mm\mempolicy.c | Create Date:2022-07-28 15:31:27 | 
| Last Modify:2020-03-17 22:28:11 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Set the process memory policy
Proto:static long do_set_mempolicy(unsigned short mode, unsigned short flags, nodemask_t *nodes)
Type:long
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned short | mode | |
| unsigned short | flags | |
| nodemask_t * | nodes | 
| 811 | NODEMASK_SCRATCH(scratch) | 
| 817 | new = This function just creates a new policy, does some check and simple* initialization. You must invoke mpol_set_nodemask() to set nodes. | 
| 825 | If ret Then | 
| 832 | If new && See MPOL_* above == MPOL_INTERLEAVE Then il_prev = MAX_NUMNODES - 1 | 
| 836 | ret = 0 | 
| 837 | out : | 
| 839 | Return ret | 
| Name | Describe | 
|---|---|
| kernel_set_mempolicy | Set the process memory policy | 
| numa_policy_init | assumes fs == KERNEL_DS | 
| numa_default_policy | Reset policy of current process to default | 
| 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 |