函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void put_user_pages_dirty_lock(struct page **pages, unsigned long npages, bool make_dirty)

返回类型:void

参数:

类型参数名称
struct page **pages
unsigned longnpages
boolmake_dirty
65  如果非make_dirty
66  put_user_pages(pages, npages)
67  返回
70 index小于npages循环
71  page等于compound_head(pages[index])
92  如果非PageDirty(page)则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