| Function report | 
| Source Code: arch\x86\kernel\cpu\resctrl\rdtgroup.c | Create Date:2022-07-28 08:11:35 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:set_cache_qos_cfg
Proto:static int set_cache_qos_cfg(int level, bool enable)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| int | level | |
| bool | enable | 
| 1738 | void( * update)(void * arg) | 
| 1744 | If level == RDT_RESOURCE_L3 Then update = l3_qos_cfg_update | 
| 1746 | Else if level == RDT_RESOURCE_L2 Then update = l2_qos_cfg_update | 
| 1748 | Else Return -EINVAL | 
| 1751 | If Not zalloc_cpumask_var( & cpu_mask, GFP_KERNEL) Then Return -ENOMEM | 
| 1754 | r_l = rdt_resources_all[level] | 
| 1757 | pumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer | 
| 1761 | If pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then update( & enable) | 
| 1764 | smp_call_function_many(cpu_mask, update, & enable, 1) | 
| 1765 | put_cpu() | 
| 1767 | free_cpumask_var(cpu_mask) | 
| 1769 | Return 0 | 
| Name | Describe | 
|---|---|
| cdp_enable | |
| cdp_disable | 
| 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 |