Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\percpu-vm.c Create Date:2022-07-28 14:27:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pcpu_create_chunk

Proto:static struct pcpu_chunk *pcpu_create_chunk(gfp_t gfp)

Type:struct pcpu_chunk

Parameter:

TypeParameterName
gfp_tgfp
336  chunk = pcpu_alloc_chunk(gfp)
337  If Not chunk Then Return NULL
340  vms = pcpu_get_vm_areas(pcpu_group_offsets, pcpu_group_sizes, group information, used for vm allocation , pcpu_atom_size)
342  If Not vms Then
343  pcpu_free_chunk(chunk)
344  Return NULL
347  chunk data = vms
348  base address of this chunk = addr - pcpu_group_offsets[0]
350  pcpu_stats_chunk_alloc()
351  trace_percpu_create_chunk( base address of this chunk )
353  Return chunk