Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cpuset.c Create Date:2022-07-28 11:17:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:puset_init - initialize cpusets at system boot* Description: Initialize top_cpuset

Proto:int __init cpuset_init(void)

Type:int

Parameter:Nothing

2892  BUG_ON(percpu_init_rwsem( & cpuset_rwsem))
2894  BUG_ON(!alloc_cpumask_var( & user-configured CPUs and Memory Nodes allow to tasks , GFP_KERNEL))
2895  BUG_ON(!alloc_cpumask_var( & effective CPUs and Memory Nodes allow to tasks , GFP_KERNEL))
2896  BUG_ON(!zalloc_cpumask_var( & * CPUs allocated to child sub-partitions (default hierarchy only) * - CPUs granted by the parent = effective_cpus U subparts_cpus * - effective_cpus and subparts_cpus are mutually exclusive. * effective_cpus contains only onlined CPUs, but subparts_cpus * , GFP_KERNEL))
2898  pumask_setall - set all cpus (< nr_cpu_ids) in a cpumask*@dstp: the cpumask pointer
2899  nodes_setall(mems_allowed)
2900  pumask_setall - set all cpus (< nr_cpu_ids) in a cpumask*@dstp: the cpumask pointer
2901  nodes_setall(effective_mems)
2903  Initialize a frequency meter
2904  Atomically set a bit in memory
2905  for custom sched domain = -1
2907  BUG_ON(!alloc_cpumask_var( & Protected by cpuset_mutex. cpus_attach is used only by cpuset_attach()* but we can't allocate it dynamically there. Define it global and* allocate from cpuset_init()., GFP_KERNEL))
2909  Return 0