函数逻辑报告 |
Source Code:mm\madvise.c |
Create Date:2022-07-27 16:42:55 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:madvise_dontneed_free
函数原型:static long madvise_dontneed_free(struct vm_area_struct *vma, struct vm_area_struct **prev, unsigned long start, unsigned long end, int behavior)
返回类型:long
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_area_struct * | vma | |
struct vm_area_struct ** | prev | |
unsigned long | start | |
unsigned long | end | |
int | behavior |
760 | 如果非can_madv_lru_vma(vma)则返回:负EINVAL |
763 | 如果非userfaultfd_remove(vma, start, end)则 |
764 | * prev = NULL |
766 | lock for reading |
770 | 如果start小于Our start address within vm_mm. 则 |
780 | 返回:负ENOMEM |
782 | 如果非can_madv_lru_vma(vma)则返回:负EINVAL |
799 | VM_WARN_ON(start >= end) |
804 | 否则如果behavior恒等于 pages only if memory pressure 则返回:madvise_free_single_vma(vma, start, end) |
806 | 否则返回:负EINVAL |
名称 | 描述 |
---|---|
madvise_vma |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |