函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kvmalloc_node - attempt to allocate physically contiguous memory, but upon* failure, fall back to non-contiguous (vmalloc) allocation

函数原型:void *kvmalloc_node(size_t size, gfp_t flags, int node)

返回类型:void

参数:

类型参数名称
size_tsize
gfp_tflags
intnode
550  kmalloc_flags等于flags
557  如果flags按位与GFP_KERNEL的值不等于GFP_KERNEL则返回:kmalloc_node(size, flags, node)
567  如果size大于PAGE_SIZE
568  kmalloc_flags或等于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.
570  如果非kmalloc_flags按位与__GFP_RETRY_MAYFAIL的值则kmalloc_flags或等于__GFP_NORETRY
574  ret等于kmalloc_node(size, kmalloc_flags, node)
580  如果retsize小于等于PAGE_SIZE则返回:ret
583  返回:__vmalloc_node_flags_caller(size, node, flags, __builtin_return_address(0))
调用者
名称描述
test_kvmalloc_nodeAllocator uses a trailing node argument --------+ (e.g. kmalloc_node())* Allocator uses the gfp_t argument -----------+ | (e.g. kmalloc())* Allocator uses a special leading argument + | | (e.g. devm_kmalloc())* | | |