Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Attach the domain 'sd' to 'cpu' as its base domain. Callers must* hold the hotplug lock.

Proto:static void cpu_attach_domain(struct sched_domain *sd, struct root_domain *rd, int cpu)

Type:void

Parameter:

TypeParameterName
struct sched_domain *sd
struct root_domain *rd
intcpu
663  rq = cpu_rq(cpu)
667  When tmp cycle
668  parent = parent
669  If Not parent Then Break
672  If sd_parent_degenerate(tmp, parent) Then
673  parent = parent
674  If parent Then child = tmp
684  Else tmp = parent
688  If sd && sd_degenerate(sd) Then
689  tmp = sd
690  sd = parent
691  destroy_sched_domain(tmp)
692  If sd Then child = NULL
696  sched_domain_debug(sd, cpu)
698  rq_attach_root(rq, rd)
699  tmp = sd
700  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(sd, sd)
701  dirty_sched_domain_sysctl(cpu)
702  destroy_sched_domains(tmp)
704  update_top_cache_domain(cpu)
Caller
NameDescribe
build_sched_domainsBuild sched domains for a given set of CPUs and attach the sched domains* to the individual CPUs
detach_destroy_domainsDetach sched domains from a group of CPUs specified in cpu_map* These CPUs will now be attached to the NULL domain