函数逻辑报告 |
Source Code:mm\process_vm_access.c |
Create Date:2022-07-27 16:31:22 |
Last Modify:2020-03-17 21:52:24 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:process_vm_rw_core - core of reading/writing pages from task specified*@pid: PID of process to read/write from/to*@iter: where to copy to/from locally*@rvec: iovec array specifying where to copy to/from in the other process*@riovcnt: size of rvec
函数原型:static ssize_t process_vm_rw_core(pid_t pid, struct iov_iter *iter, const struct iovec *rvec, unsigned long riovcnt, unsigned long flags, int vm_write)
返回类型:ssize_t
参数:
类型 | 参数 | 名称 |
---|---|---|
pid_t | pid | |
struct iov_iter * | iter | |
const struct iovec * | rvec | |
unsigned long | riovcnt | |
unsigned long | flags | |
int | vm_write |
158 | process_pages等于pp_stack |
161 | rc等于0 |
162 | nr_pages等于0 |
165 | total_len等于iov_iter_count(iter) |
173 | 如果iov_len大于0则 |
182 | 如果nr_pages恒等于0则返回:0 |
192 | 如果非process_pages则返回:负ENOMEM |
197 | task等于find_get_task_by_vpid(pid) |
198 | 如果非task则 |
200 | 转到:free_proc_pages |
221 | total_len减等于iov_iter_count(iter) |
231 | put_task_struct : |
232 | put_task_struct(task) |
234 | free_proc_pages : |
235 | 如果process_pages不等于pp_stack则释放内存 |
237 | 返回:rc |
名称 | 描述 |
---|---|
process_vm_rw | process_vm_rw - check iovecs before calling core routine*@pid: PID of process to read/write from/to*@lvec: iovec array specifying where to copy to/from locally*@liovcnt: size of lvec array*@rvec: iovec array specifying where to copy to/from in the other |
compat_process_vm_rw |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |