函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Attach the domain 'sd' to 'cpu' as its base domain. Callers must* hold the hotplug lock.

函数原型:static void cpu_attach_domain(struct sched_domain *sd, struct root_domain *rd, int cpu)

返回类型:void

参数:

类型参数名称
struct sched_domain *sd
struct root_domain *rd
intcpu
663  rq等于cpu_rq(cpu)
667 tmp循环
668  parent等于parent
669  如果非parent退出
672  如果sd_parent_degenerate(tmp, parent)则
673  parent等于parent
674  如果parentchild等于tmp
681  如果flags按位与SD_PREFER_SIBLINGflags或等于SD_PREFER_SIBLING
684  否则tmp等于parent
688  如果sdsd_degenerate(sd)则
689  tmp等于sd
690  sd等于parent
691  destroy_sched_domain(tmp)
692  如果sdchild = 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)
调用者
名称描述
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