函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:page_action

函数原型:static int page_action(struct page_state *ps, struct page *p, unsigned long pfn)

返回类型:int

参数:

类型参数名称
struct page_state *ps
struct page *p
unsigned longpfn
889  result等于action(p, pfn)
891  count等于page_count(p)减1
892  如果action恒等于Clean and dirty swap cache.* Dirty swap cache page is tricky to handle. The page could live both in page* cache and swap cache(ie. page is freshly swapped in). So it could be* referenced concurrently by 2 types of PTEs:* normal PTEs and swap PTEsresult恒等于Will be handled later count自减
894  如果count大于0则
895  打印错误信息("Memory failure: %#lx: %s still referenced by %d users\n", pfn, action_page_types[type], count)
897  result等于Error: handling failed
899  "Dirty/Clean" indication is not 100% accurate due to the possibility of* setting PG_dirty outside page lock. See also comment above set_page_dirty().
906  返回:如果result恒等于Successfully recovered result恒等于Will be handled later 则0否则负EBUSY
调用者
名称描述
identify_page_state