函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:activate_page

函数原型:void activate_page(struct page *page)

返回类型:void

参数:

类型参数名称
struct page *page
327  pgdat等于page_pgdat(page)
329  page等于compound_head(page)
330  spin_lock_irq( & Write-intensive fields used by page reclaim )
331  __activate_page(page, mem_cgroup_page_lruvec(page, pgdat), NULL)
332  spin_unlock_irq( & Write-intensive fields used by page reclaim )
调用者
名称描述
mark_page_accessedMark a page as having seen activity.* inactive,unreferenced -> inactive,referenced* inactive,referenced -> active,unreferenced* active,unreferenced -> active,referenced* When a newly allocated page is not yet visible, so safe for non-atomic ops,
do_swap_pageWe enter with non-exclusive mmap_sem (to exclude vma changes,* but allow concurrent faults), and pte mapped but not yet locked.* We return with pte unmapped and unlocked.* We return with the mmap_sem locked or unlocked in the same cases
unuse_pteNo need to decide whether this PTE shares the swap entry with others,* just let do_wp_page work it out if a write is requested later - to* force COW, vm_page_prot omits write permission from any private vma.