| Function report | 
| Source Code: mm\memory.c | Create Date:2022-07-28 14:43:53 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Access another process' address space as given in mm. If non-NULL, use the* given task for page fault accounting.
Proto:int __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm, unsigned long addr, void *buf, int len, unsigned int gup_flags)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| 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 | If down_read_killable( & mmap_sem) Then Return 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 | If ret <= 0 Then | 
| 4482 | Break | 
| 4498 | Else | 
| 4520 | lease a read lock | 
| Name | Describe | 
|---|---|
| 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 | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |