Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\oom_kill.c Create Date:2022-07-28 14:06:11
Last Modify:2022-05-23 13:16:41 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__oom_reap_task_mm

Proto:bool __oom_reap_task_mm(struct mm_struct *mm)

Type:bool

Parameter:

TypeParameterName
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  When vma cycle
526  If Not can_madv_lru_vma(vma) Then Continue
539  If vma_is_anonymous(vma) || Not (Flags, see mm.h. & VM_SHARED) Then
546  tlb_gather_mmu( & tlb, mm, start, end)
548  tlb_finish_mmu( & tlb, start, end)
549  ret = false
550  Continue
552  unmap_page_range( & tlb, vma, start, end, NULL)
554  tlb_finish_mmu( & tlb, start, end)
558  Return ret
Caller
NameDescribe
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.