函数逻辑报告 |
Source Code:mm\page_idle.c |
Create Date:2022-07-27 18:09:51 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:page_idle_bitmap_read
函数原型:static ssize_t page_idle_bitmap_read(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t pos, size_t count)
返回类型:ssize_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct file * | file | |
| struct kobject * | kobj | |
| struct bin_attribute * | attr | |
| char * | buf | |
| loff_t | pos | |
| size_t | count |
| 130 | 如果pos取模BITMAP_CHUNK_SIZE或count取模BITMAP_CHUNK_SIZE则返回:负EINVAL |
| 133 | pfn等于pos乘BITS_PER_BYTE |
| 137 | end_pfn等于pfn加count乘BITS_PER_BYTE |
| 142 | bit等于pfn取模BITMAP_CHUNK_BITS |
| 145 | page等于Idle page tracking only considers user memory pages, for other types of* pages the idle flag is always unset and an attempt to set it is silently* ignored |
| 146 | 如果page则 |
| 147 | 如果page_is_idle(page)则 |
| 154 | 如果page_is_idle(page)则out或等于1ULL左移bit位 |
| 159 | 如果bit恒等于BITMAP_CHUNK_BITS减1则out自加 |
| 161 | cond_resched() |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |