函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pcpu_create_chunk

函数原型:static struct pcpu_chunk *pcpu_create_chunk(gfp_t gfp)

返回类型:struct pcpu_chunk

参数:

类型参数名称
gfp_tgfp
336  chunk等于pcpu_alloc_chunk(gfp)
337  如果非chunk则返回:NULL
340  vms等于pcpu_get_vm_areas(pcpu_group_offsets, pcpu_group_sizes, group information, used for vm allocation , pcpu_atom_size)
342  如果非vms
343  pcpu_free_chunk(chunk)
344  返回:NULL
347  chunk data 等于vms
348  base address of this chunk 等于addrpcpu_group_offsets[0]
350  pcpu_stats_chunk_alloc()
351  trace_percpu_create_chunk( base address of this chunk )
353  返回:chunk
调用者
名称描述
pcpu_allocpcpu_alloc - the percpu allocator*@size: size of area to allocate in bytes*@align: alignment of area (max PAGE_SIZE)*@reserved: allocate from the reserved chunk if available*@gfp: allocation flags* Allocate percpu area of @size bytes aligned at @align
pcpu_balance_workfnBalance work is used to populate or destroy chunks asynchronously. We* try to keep the number of populated free pages between* PCPU_EMPTY_POP_PAGES_LOW and HIGH for atomic allocations and at most one* empty chunk.