函数逻辑报告 |
Source Code:mm\memory.c |
Create Date:2022-07-27 16:11:16 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Access another process' address space as given in mm. If non-NULL, use the* given task for page fault accounting.
函数原型:int __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm, unsigned long addr, void *buf, int len, unsigned int gup_flags)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct task_struct * | tsk | |
| struct mm_struct * | mm | |
| unsigned long | addr | |
| void * | buf | |
| int | len | |
| unsigned int | gup_flags |
| 4467 | write等于gup_flags按位与check pte is writable |
| 4469 | 如果down_read_killable( & mmap_sem)则返回:0 |
| 4478 | ret等于get_user_pages_remote() - pin user pages in memory*@tsk: the task_struct to use for page fault accounting, or* NULL if faults are not to be recorded |
| 4480 | 如果ret小于等于0则 |
| 4482 | 退出 |
| 4498 | 否则 |
| 4520 | lease a read lock |
| 名称 | 描述 |
|---|---|
| access_remote_vm | access_remote_vm - access another process' address space*@mm: the mm_struct of the target address space*@addr: start address to access*@buf: source or destination buffer*@len: number of bytes to transfer*@gup_flags: flags modifying lookup behaviour |
| access_process_vm | Access another process' address space.* Source/target buffer must be kernel space,* Do not walk the page table directly, use get_user_pages |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |