Function report |
Source Code:mm\rmap.c |
Create Date:2022-07-28 14:56:00 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:int anon_vma_fork(struct vm_area_struct *vma, struct vm_area_struct *pvma)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct vm_area_struct * | vma | |
struct vm_area_struct * | pvma |
342 | If Not Serialized by page_table_lock Then Return 0 |
346 | Serialized by page_table_lock = NULL |
357 | If Serialized by page_table_lock Then Return 0 |
361 | anon_vma = anon_vma_alloc() |
364 | avc = anon_vma_chain_alloc(GFP_KERNEL) |
365 | If Not avc Then Go to out_error_free_anon_vma |
383 | anon_vma_chain_link(vma, avc, anon_vma) |
387 | Return 0 |
389 | out_error_free_anon_vma : |
390 | put_anon_vma(anon_vma) |
391 | out_error : |
392 | unlink_anon_vmas(vma) |
393 | Return -ENOMEM |
Name | Describe |
---|---|
dup_mmap |
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 |