Function report |
Source Code:mm\rmap.c |
Create Date:2022-07-28 14:55:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__anon_vma_prepare - attach an anon_vma to a memory region*@vma: the memory region in question* This makes sure the memory mapping described by 'vma' has* an 'anon_vma' attached to it, so that we can associate the
Proto:int __anon_vma_prepare(struct vm_area_struct *vma)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct vm_area_struct * | vma |
182 | might_sleep() |
184 | avc = anon_vma_chain_alloc(GFP_KERNEL) |
185 | If Not avc Then Go to out_enomem |
188 | anon_vma = d_mergeable_anon_vma is used by anon_vma_prepare, to check* neighbouring vmas for a suitable anon_vma, before it goes off* to allocate a new anon_vma |
189 | allocated = NULL |
190 | If Not anon_vma Then |
191 | anon_vma = anon_vma_alloc() |
192 | If Value for the false possibility is greater at compile time(!anon_vma) Then Go to out_enomem_free_avc |
211 | If Value for the false possibility is greater at compile time(allocated) Then put_anon_vma(allocated) |
213 | If Value for the false possibility is greater at compile time(avc) Then anon_vma_chain_free(avc) |
216 | Return 0 |
218 | out_enomem_free_avc : |
219 | anon_vma_chain_free(avc) |
220 | out_enomem : |
221 | Return -ENOMEM |
Name | Describe |
---|---|
anon_vma_prepare |
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 |