函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__gup_longterm_unlocked

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

返回类型:int

参数:

类型参数名称
unsigned longstart
intnr_pages
unsigned intgup_flags
struct page **pages
2382  如果gup_flags按位与mapping lifetime is indefinite: see below
2383  lock for reading
2384  ret等于__gup_longterm_locked() is a wrapper for __get_user_pages_locked which* allows us to process the FOLL_LONGTERM flag.
2387  lease a read lock
2388  否则
2389  ret等于get_user_pages_unlocked() is suitable to replace the form:* down_read(&mm->mmap_sem);* get_user_pages(tsk, mm,
2393  返回:ret
调用者
名称描述
get_user_pages_fastget_user_pages_fast() - pin user pages in memory*@start: starting user address*@nr_pages: number of pages from start to pin*@gup_flags: flags modifying pin behaviour*@pages: array that receives pointers to the pages pinned.