| Function report | 
| Source Code: mm\mempolicy.c | Create Date:2022-07-28 15:33:37 | 
| Last Modify:2020-03-17 22:28:11 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:mpol_set_shared_policy
Proto:int mpol_set_shared_policy(struct shared_policy *info, struct vm_area_struct *vma, struct mempolicy *npol)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct shared_policy * | info | |
| struct vm_area_struct * | vma | |
| struct mempolicy * | npol | 
| 2645 | pr_debug("set_shared_policy %lx sz %lu %d %d %lx\n", Offset (within vm_file) in PAGE_SIZEunits , sz, npol ? See MPOL_* above : - 1, npol ? See set_mempolicy() MPOL_F_* above : - 1, npol ? nodes_addr( interleave/bind )[0] : NUMA_NO_NODE) | 
| 2651 | If npol Then | 
| 2656 | err = Replace a policy range. | 
| 2659 | Return err | 
| Name | Describe | 
|---|---|
| mpol_shared_policy_init | mpol_shared_policy_init - initialize shared policy for inode*@sp: pointer to inode shared policy*@mpol: struct mempolicy to install* Install non-NULL @mpol in inode's shared policy rb-tree.* On entry, the current task has a reference on a non-NULL @mpol. | 
| 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 |