函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\core.c Create Date:2022-07-27 09:10:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:domain_add_cpu - Add a cpu to a resource's domain list.* If an existing domain in the resource r's domain list matches the cpu's* resource id, add the cpu in the domain.* Otherwise, a new domain is allocated and inserted into the right position

函数原型:static void domain_add_cpu(int cpu, struct rdt_resource *r)

返回类型:void

参数:

类型参数名称
intcpu
struct rdt_resource *r
559  id等于get_cache_id(cpu, cache_level)
560  struct list_head * add_pos = NULL
563  d等于dt_find_domain - Find a domain in a resource that matches input resource id* Search resource r's domain list to find the resource id. If the resource* id is found in a domain, return the domain. Otherwise, if requested by
564  如果是错误
565  打印警告信息("Could't find cache id for cpu %d\n", cpu)
566  返回
569  如果d
570  设置CPU信息
571  返回
574  d等于根据内存节点分配内存
575  如果非d则返回
578  id等于id
579  设置CPU信息
581  如果alloc_capabledomain_setup_ctrlval(r, d)则
582  释放内存
583  返回
586  如果mon_capabledomain_setup_mon_state(r, d)则
587  释放内存
588  返回
591  添加链表项
597  如果static_branch_unlikely( & rdt_mon_enable_key)则mkdir_mondata_subdir_allrdtgrp(r, d)
调用者
名称描述
resctrl_online_cpu