函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Collect processes when the error hit an anonymous page.

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

返回类型:void

参数:

类型参数名称
struct page *page
struct list_head *to_kill
intforce_early
441  av等于Similar to page_get_anon_vma() except it locks the anon_vma.* Its a little more complex as it tries to keep the fast path to a single* atomic op -- the trylock. If we fail the trylock, we fall back to getting a
442  如果(av == NULL)则返回
445  pgoff等于Get the offset in PAGE_SIZE.* (TODO: hugepage should have ->index in PAGE_SIZE)
446  read_lock( & tasklist_lock)
449  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
451  如果非t则继续下一循环
455  vma等于vma
456  如果非page_mapped_in_vma - check whether a page is really mapped in a VMA*@page: the page to test*@vma: the VMA to test* Returns 1 if the page is mapped into the page tables of the VMA, 0* if the page is not mapped into the page tables of this VMA. Only则继续下一循环
458  如果The address space we belong to. 恒等于内存信息Schedule a process for later kill.* Uses GFP_ATOMIC allocations to avoid potential recursions in the VM.
462  read_unlock( & tasklist_lock)
463  page_unlock_anon_vma_read(av)
调用者
名称描述
collect_procsCollect the processes who have the corrupted page mapped to kill.