函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\oom_kill.c Create Date:2022-07-27 15:29:21
Last Modify:2022-05-23 13:16:41 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__oom_reap_task_mm

函数原型:bool __oom_reap_task_mm(struct mm_struct *mm)

返回类型:bool

参数:

类型参数名称
struct mm_struct *mm
515  bool ret = true
523  set_bit - Atomically set a bit in memory*@nr: the bit to set*@addr: the address to start counting from* This is a relaxed atomic operation (no implied memory barriers).* Note that @nr may be almost arbitrarily large; this function is not
525 vma循环
526  如果非can_madv_lru_vma(vma)则继续下一循环
539  如果vma_is_anonymous(vma)或非Flags, see mm.h. 按位与VM_SHARED的值则
546  tlb_gather_mmu( & tlb, mm, start, end)
548  tlb_finish_mmu( & tlb, start, end)
549  ret = false
550  继续下一循环
552  unmap_page_range( & tlb, vma, start, end, NULL)
554  tlb_finish_mmu( & tlb, start, end)
558  返回:ret
调用者
名称描述
oom_reap_task_mmReaps the address space of the give task.* Returns true on success and false if none or part of the address space* has been reclaimed and the caller should retry later.
exit_mmapRelease all mmaps.