函数逻辑报告 | 
Source Code:mm\mincore.c | 
Create Date:2022-07-27 16:12:17 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Do a chunk of "sys_mincore()". We've already checked* all the arguments, we hold the mmap semaphore: we should* just return the amount of info we're asked for.
函数原型:static long do_mincore(unsigned long addr, unsigned long pages, unsigned char *vec)
返回类型:long
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| unsigned long | addr | |
| unsigned long | pages | |
| unsigned char * | vec | 
| 214 | 如果非vma或addr小于Our start address within vm_mm. 则返回:负ENOMEM | 
| 216 | end等于两数取小(The first byte after our end addresswithin vm_mm. , addr + (pages << PAGE_SHIFT determines the page size )) | 
| 217 | 如果非can_do_mincore(vma)则 | 
| 222 | err等于walk_page_range(The address space we belong to. , addr, end, & mincore_walk_ops, vec) | 
| 225 | 返回:end减addr右移PAGE_SHIFT determines the page size 位 | 
| 名称 | 描述 | 
|---|---|
| SYSCALL_DEFINE3 | The mincore(2) system call | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |