函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:warn_alloc

函数原型:void warn_alloc(gfp_t gfp_mask, nodemask_t *nodemask, const char *fmt, ...)

返回类型:void

参数:

类型参数名称
gfp_tgfp_mask
nodemask_t *nodemask
const char *fmt
3740  DEFINE_RATELIMIT_STATE(nopage_rs, 10 * HZ, 1)
3742  如果gfp_mask按位与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.或非__ratelimit( & nopage_rs)则返回
3745  va_start(args, fmt)
3746  fmt等于fmt
3747  va等于args
3748  打印警告信息("%s: %pV, mode:%#x(%pGg), nodemask=%*pbl", comm, & vaf, gfp_mask, & gfp_mask, demask_pr_args - printf args to output a nodemask*@maskp: nodemask to be printed* Can be used to provide arguments for '%*pb[l]' when printing a nodemask.(nodemask))
3751  va_end(args)
3753  puset_print_current_mems_allowed - prints current's cpuset and mems_allowed* Description: Prints current's name, cpuset name, and cached copy of its* mems_allowed to the kernel log.
3754  打印标准信息("\n")
3755  dump_stack()
3756  warn_alloc_show_mem(gfp_mask, nodemask)
调用者
名称描述
__vmalloc_node_range__vmalloc_node_range - allocate virtually contiguous memory*@size: allocation size*@align: desired alignment*@start: vm area range start*@end: vm area range end*@gfp_mask: flags for the page level allocator*@prot: protection mask for the allocated pages
__alloc_pages_slowpath
vmemmap_alloc_block
__vmalloc_area_node