Function report |
Source Code:mm\mempolicy.c |
Create Date:2022-07-28 15:31:19 |
| Last Modify:2020-03-17 22:28:11 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Apply policy to a single VMA* This must be called with the mmap_sem held for writing.
Proto:static int vma_replace_policy(struct vm_area_struct *vma, struct mempolicy *pol)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct vm_area_struct * | vma | |
| struct mempolicy * | pol |
| 721 | pr_debug("vma %lx-%lx/%lx vm_ops %p vm_file %p set_policy %p\n", Our start address within vm_mm. , The first byte after our end addresswithin vm_mm. , Offset (within vm_file) in PAGE_SIZEunits , Function pointers to deal with this struct. , File we map to (can be NULL). , Function pointers to deal with this struct. ? set_policy : NULL) |
| 730 | If Function pointers to deal with this struct. && set_policy Then |
| 736 | old = NUMA policy for the VMA |
| 737 | NUMA policy for the VMA = new |
| 740 | Return 0 |
| 741 | err_out : |
| 743 | Return err |
| Name | Describe |
|---|---|
| mbind_range | Step 2: apply policy to a range and do splits. |
| 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 |