函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pfmemalloc_match

函数原型:static inline bool pfmemalloc_match(struct page *page, gfp_t gfpflags)

返回类型:bool

参数:

类型参数名称
struct page *page
gfp_tgfpflags
2481  如果此条件成立可能性小(为编译器优化)(If network-based swap is enabled, sl*b must keep track of whether pages* were allocated from pfmemalloc reserves.)则返回:gfp_pfmemalloc_allowed(gfpflags)
2484  返回:true
调用者
名称描述
get_partial_nodeTry to allocate a partial slab from a specific node.
___slab_allocSlow path. The lockless freelist is empty or we need to perform* debugging duties.* Processing is still very fast if new objects have been freed to the* regular freelist. In that case we simply take over the regular freelist