Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\gup.c Create Date:2022-07-28 14:35:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__gup_longterm_unlocked

Proto:static int __gup_longterm_unlocked(unsigned long start, int nr_pages, unsigned int gup_flags, struct page **pages)

Type:int

Parameter:

TypeParameterName
unsigned longstart
intnr_pages
unsigned intgup_flags
struct page **pages
2382  If gup_flags & mapping lifetime is indefinite: see below Then
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  Else
2389  ret = get_user_pages_unlocked() is suitable to replace the form:* down_read(&mm->mmap_sem);* get_user_pages(tsk, mm,
2393  Return ret
Caller
NameDescribe
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.