Function report |
Source Code:mm\rmap.c |
Create Date:2022-07-28 14:55:57 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Attach the anon_vmas from src to dst
Proto:int anon_vma_clone(struct vm_area_struct *dst, struct vm_area_struct *src)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct vm_area_struct * | dst | |
| struct vm_area_struct * | src |
| 272 | prev = linked list of VM areas per task, sorted by address , pprev = linked list of VM areas per task, sorted by address |
| 291 | unlock_anon_vma_root(root) |
| 292 | root = NULL |
| 293 | avc = anon_vma_chain_alloc(GFP_KERNEL) |
| 294 | If Not avc Then Go to enomem_failure |
| 299 | anon_vma_chain_link(dst, avc, anon_vma) |
| 313 | If Serialized by page_table_lock Then degree++ |
| 315 | unlock_anon_vma_root(root) |
| 316 | Return 0 |
| 318 | enomem_failure : |
| 325 | Serialized by page_table_lock = NULL |
| 326 | unlink_anon_vmas(dst) |
| 327 | Return -ENOMEM |
| Name | Describe |
|---|---|
| __split_vma | __split_vma() bypasses sysctl_max_map_count checking. We use this where it* has already been checked or doesn't make sense to fail. |
| copy_vma | Copy the vma structure to a new location in the same mm,* prior to moving page table entries, to effect an mremap move. |
| anon_vma_fork | Attach vma to its own anon_vma, as well as to the anon_vmas that* the corresponding VMA in the parent process is attached to.* Returns 0 on success, non-zero on failure. |
| 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 |