Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
unsigned longstart
unsigned longnr_pages
struct page **pages
unsigned intgup_flags
1688  mm = mm
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
Caller
NameDescribe
__gup_longterm_unlocked