函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:tlb_next_batch

函数原型:static bool tlb_next_batch(struct mmu_gather *tlb)

返回类型:bool

参数:

类型参数名称
struct mmu_gather *tlb
20  batch等于active
21  如果next
22  active等于next
23  返回:true
26  如果batch_count恒等于Limit the maximum number of mmu_gather batches to reduce a risk of soft* lockups for non-preemptible kernels on huge machines when a lot of memory* is zapped during unmapping.* 10K pages freed at once should be safe even without a preemption point.则返回:false
29  batch等于__get_free_pages(GFP_NOWAIT | DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success., 0)
30  如果非batch则返回:false
33  batch_count自加
34  next = NULL
35  nr等于0
36  max等于MAX_GATHER_BATCH
38  next等于batch
39  active等于batch
41  返回:true
调用者
名称描述
__tlb_remove_page_size