Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:put_user_pages_dirty_lock() - release and optionally dirty gup-pinned pages*@pages: array of pages to be maybe marked dirty, and definitely released

Proto:void put_user_pages_dirty_lock(struct page **pages, unsigned long npages, bool make_dirty)

Type:void

Parameter:

TypeParameterName
struct page **pages
unsigned longnpages
boolmake_dirty
65  If Not make_dirty Then
66  put_user_pages(pages, npages)
67  Return
70  When index < npages cycle
71  page = compound_head(pages[index])
92  If Not PageDirty(page) Then set_page_dirty() is racy if the caller has no reference against* CPU could truncate the page off the mapping and then free the mapping.* Usually, the page _is_ locked, or the caller is a user-space process which
94  put_user_page() - release a gup-pinned page*@page: pointer to page to be released* Pages that were pinned via get_user_pages*() must be released via* either put_user_page(), or one of the put_user_pages*() routines* below