Function report |
Source Code:arch\x86\kernel\cpu\resctrl\core.c |
Create Date:2022-07-28 08:10:01 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:domain_setup_ctrlval
Proto:static int domain_setup_ctrlval(struct rdt_resource *r, struct rdt_domain *d)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct rdt_resource * | r | |
| struct rdt_domain * | d |
| 488 | dc = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
| 492 | dm = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
| 493 | If Not dm Then |
| 495 | Return -ENOMEM |
| 500 | setup_default_ctrlval(r, dc, dm) |
| 502 | low = 0 |
| 503 | high = num_closid |
| 504 | msr_update(d, & m, r) |
| 505 | Return 0 |
| Name | Describe |
|---|---|
| domain_add_cpu | 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 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |