Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memory-failure.c Create Date:2022-07-28 16:18:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Collect processes when the error hit a file mapped page.

Proto:static void collect_procs_file(struct page *page, struct list_head *to_kill, int force_early)

Type:void

Parameter:

TypeParameterName
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  If Not t Then Continue
493  If The address space we belong to. == mm Then 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)
Caller
NameDescribe
collect_procsCollect the processes who have the corrupted page mapped to kill.