Function report |
Source Code:mm\madvise.c |
Create Date:2022-07-28 15:12:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:madvise_free_single_vma
Proto:static int madvise_free_single_vma(struct vm_area_struct *vma, unsigned long start_addr, unsigned long end_addr)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct vm_area_struct * | vma | |
unsigned long | start_addr | |
unsigned long | end_addr |
701 | If Not vma_is_anonymous(vma) Then Return -EINVAL |
704 | start = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(Our start address within vm_mm. , start_addr) |
705 | If start >= The first byte after our end addresswithin vm_mm. Then Return -EINVAL |
707 | end = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(The first byte after our end addresswithin vm_mm. , end_addr) |
708 | If end <= Our start address within vm_mm. Then Return -EINVAL |
710 | mmu_notifier_range_init( & range, MMU_NOTIFY_CLEAR, 0, vma, mm, start, end) |
713 | lru_add_drain() |
715 | update_hiwater_rss(mm) |
718 | tlb_start_vma( & tlb, vma) |
721 | tlb_end_vma( & tlb, vma) |
725 | Return 0 |
Name | Describe |
---|---|
madvise_dontneed_free |
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 |