函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\topology.c Create Date:2022-07-27 10:43:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Detach sched domains from a group of CPUs specified in cpu_map* These CPUs will now be attached to the NULL domain

函数原型:static void detach_destroy_domains(const struct cpumask *cpu_map)

返回类型:void

参数:

类型参数名称
const struct cpumask *cpu_map
2163  cpu等于cpumask_any - pick a "random" cpu from *srcp*@srcp: the input cpumask* Returns >= nr_cpu_ids if no cpus set.(cpu_map)
2166  如果cu_access_pointer() - fetch RCU pointer with no dereferencing*@p: The pointer to read* Return the value of the specified RCU-protected pointer, but omit the* lockdep checks for being in an RCU read-side critical section(per_cpu(sd_asym_cpucapacity, cpu))则static_branch_dec_cpuslocked( & sched_asym_cpucapacity)
2169  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
2170  遍历CPU(i, cpu_map)
2171  Attach the domain 'sd' to 'cpu' as its base domain. Callers must* hold the hotplug lock.
2172  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
调用者
名称描述
partition_sched_domains_lockedPartition sched domains as specified by the 'ndoms_new'* cpumasks in the array doms_new[] of cpumasks. This compares* doms_new[] to the current sched domain partitioning, doms_cur[].* It destroys each deleted domain and builds each new domain.