函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\gup.c Create Date:2022-07-27 16:01:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:get_user_pages_unlocked() is suitable to replace the form:* down_read(&mm->mmap_sem);* get_user_pages(tsk, mm,

函数原型:long get_user_pages_unlocked(unsigned long start, unsigned long nr_pages, struct page **pages, unsigned int gup_flags)

返回类型:long

参数:

类型参数名称
unsigned longstart
unsigned longnr_pages
struct page **pages
unsigned intgup_flags
1688  mm等于mm
1689  locked等于1
1698  如果WARN_ON_ONCE(gup_flags & mapping lifetime is indefinite: see below )则返回:负EINVAL
1701  lock for reading
1702  ret等于__get_user_pages_locked(当前进程, mm, start, nr_pages, pages, NULL, & locked, gup_flags | mark page accessed )
1704  如果lockedlease a read lock
1706  返回:ret
调用者
名称描述
__gup_longterm_unlocked