函数逻辑报告 |
Source Code:mm\fadvise.c |
Create Date:2022-07-27 15:30:15 |
Last Modify:2020-03-17 21:10:40 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:POSIX_FADV_WILLNEED could set PG_Referenced, and POSIX_FADV_NOREUSE could* deactivate the pages and clear PG_Referenced.
函数原型:int generic_fadvise(struct file *file, loff_t offset, loff_t len, int advice)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | file | |
loff_t | offset | |
loff_t | len | |
int | advice |
40 | inode等于file_inode(file) |
48 | bdi等于inode_to_bdi(host) |
50 | 如果IS_DAX(inode)或bdi恒等于noop_backing_dev_info则 |
74 | 否则endbyte自减 |
101 | nrpages等于end_index减start_index加1 |
110 | 退出 |
112 | 退出 |
113 | 当:advice恒等于Don't need these pages. |
145 | 如果end_index大于等于start_index则 |
157 | lru_add_drain() |
168 | 如果count小于end_index减start_index加1则 |
174 | 退出 |
175 | 默认 |
176 | 返回:负EINVAL |
178 | 返回:0 |
名称 | 描述 |
---|---|
vfs_fadvise |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |