函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Collect processes when the error hit a file mapped page.

函数原型:static void collect_procs_file(struct page *page, struct list_head *to_kill, int force_early)

返回类型:void

参数:

类型参数名称
struct page *page
struct list_head *to_kill
intforce_early
474  mapping等于 See page-flags.h for PAGE_MAPPING_FLAGS
476  i_mmap_lock_read(mapping)
477  read_lock( & tasklist_lock)
479  pgoff等于Get the offset in PAGE_SIZE.* (TODO: hugepage should have ->index in PAGE_SIZE)
480  t等于Determine whether a given process is "early kill" process which expects* to be signaled when some page under the process is hwpoisoned.* Return task_struct of the dedicated thread (main thread unless explicitly
482  如果非t则继续下一循环
493  如果The address space we belong to. 恒等于内存信息Schedule a process for later kill.* Uses GFP_ATOMIC allocations to avoid potential recursions in the VM.
497  read_unlock( & tasklist_lock)
498  i_mmap_unlock_read(mapping)
调用者
名称描述
collect_procsCollect the processes who have the corrupted page mapped to kill.