Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\cpudeadline.c Create Date:2022-07-28 09:41:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pudl_init - initialize the cpudl structure*@cp: the cpudl max-heap context

Proto:int cpudl_init(struct cpudl *cp)

Type:int

Parameter:

TypeParameterName
struct cpudl *cp
244  raw_spin_lock_init( & lock)
245  size = 0
247  elements = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
250  If Not elements Then Return -ENOMEM
253  If Not zalloc_cpumask_var( & free_cpus, GFP_KERNEL) Then
254  free previously allocated memory
255  Return -ENOMEM
258  for_each_possible_cpu(i)
259  idx = SPDX-License-Identifier: GPL-2.0
261  Return 0
Caller
NameDescribe
init_rootdomain