函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:update_top_cache_domain

函数原型:static void update_top_cache_domain(int cpu)

返回类型:void

参数:

类型参数名称
intcpu
629  struct sds = NULL
631  id等于cpu
632  size等于1
634  sd等于highest_flag_domain(cpu, SD_SHARE_PKG_RESOURCES)
635  如果sd
636  id等于Uniprocessor. Assume all masks are "1".
637  size等于pumask_weight - Count of bits in *srcp*@srcp: the cpumask to count bits (< nr_cpu_ids) in.
638  sds等于shared
641  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(per_cpu(Keep a special pointer to the highest sched_domain that has* SD_SHARE_PKG_RESOURCE set (Last Level Cache Domain) for this* allows us to avoid some pointer chasing select_idle_sibling(), cpu), sd)
642  per_cpu(sd_llc_size, cpu)等于size
643  per_cpu(sd_llc_id, cpu)等于id
644  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(per_cpu(sd_llc_shared, cpu), sds)
646  sd等于lowest_flag_domain(cpu, SD_NUMA)
647  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(per_cpu(sd_numa, cpu), sd)
649  sd等于highest_flag_domain(cpu, SD_ASYM_PACKING)
650  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(per_cpu(sd_asym_packing, cpu), sd)
652  sd等于lowest_flag_domain(cpu, SD_ASYM_CPUCAPACITY)
653  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(per_cpu(sd_asym_cpucapacity, cpu), sd)
调用者
名称描述
cpu_attach_domainAttach the domain 'sd' to 'cpu' as its base domain. Callers must* hold the hotplug lock.