| Function report | 
| Source Code: kernel\sched\cpuacct.c | Create Date:2022-07-28 09:44:19 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Create a new CPU accounting group
Proto:static struct cgroup_subsys_state *cpuacct_css_alloc(struct cgroup_subsys_state *parent_css)
Type:struct cgroup_subsys_state
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct cgroup_subsys_state * | parent_css | 
| 63 | If Not parent_css Then Return css | 
| 66 | ca = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). | 
| 71 | If Not cpuusage holds pointer to a u64-type object on every CPU Then Go to out_free_ca | 
| 74 | cpustat = alloc_percpu(structkernel_cpustat) | 
| 75 | If Not cpustat Then Go to out_free_cpuusage | 
| 78 | Return css | 
| 80 | out_free_cpuusage : | 
| 82 | out_free_ca : | 
| 84 | out : | 
| 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 |