Function report | 
Source Code:mm\gup.c | 
Create Date:2022-07-28 14:35:36 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:We can leverage the VM_FAULT_RETRY functionality in the page fault* paths better by using either get_user_pages_locked() or* get_user_pages_unlocked().* get_user_pages_locked() is suitable to replace the form:* down_read(&mm->mmap_sem);* do_something()
Proto:long get_user_pages_locked(unsigned long start, unsigned long nr_pages, unsigned int gup_flags, struct page **pages, int *locked)
Type:long
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned long | start | |
| unsigned long | nr_pages | |
| unsigned int | gup_flags | |
| struct page ** | pages | |
| int * | locked | 
| 1661 | If WARN_ON_ONCE(gup_flags & mapping lifetime is indefinite: see below ) Then Return -EINVAL | 
| 1664 | Return __get_user_pages_locked(current process, mm, start, nr_pages, pages, NULL, locked, gup_flags | mark page accessed ) | 
| Name | Describe | 
|---|---|
| lookup_node | |
| get_vaddr_frames | get_vaddr_frames() - map virtual addresses to pfns*@start: starting user address*@nr_frames: number of pages / pfns from start to map*@gup_flags: flags modifying lookup behaviour*@vec: structure which receives pages / pfns of the addresses mapped. | 
| 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  |