函数逻辑报告 |
Source Code:mm\mlock.c |
Create Date:2022-07-27 16:13:28 |
Last Modify:2022-05-23 14:12:58 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Go through vma areas and sum size of mlocked* vma pages, as return value.* Note deferred memory locking case(mlock2(,,MLOCK_ONFAULT)* is also counted.* Return value: previously mlocked page counts
函数原型:static unsigned long count_mm_mlocked_page_nr(struct mm_struct *mm, unsigned long start, size_t len)
返回类型:unsigned long
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mm_struct * | mm | |
unsigned long | start | |
size_t | len |
643 | count等于0 |
649 | 如果(vma == NULL)则vma等于 list of VMAs |
653 | 如果start大于等于The first byte after our end addresswithin vm_mm. 则继续下一循环 |
655 | 如果start加len小于等于Our start address within vm_mm. 则退出 |
657 | 如果Flags, see mm.h. 按位与VM_LOCKED则 |
662 | 退出 |
668 | 返回:count右移PAGE_SHIFT determines the page size 位 |
名称 | 描述 |
---|---|
do_mlock |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |