函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page-writeback.c Create Date:2022-07-27 15:34:55
Last Modify:2022-05-23 13:25:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:int set_page_dirty_lock(struct page *page)

返回类型:int

参数:

类型参数名称
struct page *page>mapping->host, and if the page is unlocked. This is because another
2596  lock_page may only be called if we have the page's inode pinned.
2597  ret等于Dirty a page
2598  lock_page - unlock a locked page*@page: the page* Unlocks the page and wakes up sleepers in ___wait_on_page_locked().* Also wakes sleepers in wait_on_page_writeback() because the wakeup* mechanism between PageLocked pages and PageWriteback pages is shared.
2599  返回:ret
调用者
名称描述
put_user_pages_dirty_lockput_user_pages_dirty_lock() - release and optionally dirty gup-pinned pages*@pages: array of pages to be maybe marked dirty, and definitely released
__access_remote_vmAccess another process' address space as given in mm. If non-NULL, use the* given task for page fault accounting.
process_vm_rw_pagesprocess_vm_rw_pages - read/write pages from task specified*@pages: array of pointers to pages we want to copy*@offset: offset in page to start copying from/to*@len: number of bytes to copy*@iter: where to copy to/from locally*@vm_write: 0 means copy from,
bio_set_pages_dirty_set_pages_dirty() will mark all the bio's pages as dirty.
bio_release_pages