| Function report | 
| Source Code: mm\gup.c | Create Date:2022-07-28 14:35:37 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:get_user_pages_unlocked() is suitable to replace the form:* down_read(&mm->mmap_sem);* get_user_pages(tsk, mm,
Proto:long get_user_pages_unlocked(unsigned long start, unsigned long nr_pages, struct page **pages, unsigned int gup_flags)
Type:long
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned long | start | |
| unsigned long | nr_pages | |
| struct page ** | pages | |
| unsigned int | gup_flags | 
| 1689 | locked = 1 | 
| 1698 | If WARN_ON_ONCE(gup_flags & mapping lifetime is indefinite: see below ) Then Return -EINVAL | 
| 1701 | lock for reading | 
| 1702 | ret = __get_user_pages_locked(current process, mm, start, nr_pages, pages, NULL, & locked, gup_flags | mark page accessed ) | 
| 1704 | If locked Then lease a read lock | 
| 1706 | Return ret | 
| Name | Describe | 
|---|---|
| __gup_longterm_unlocked | 
| 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 |