Function report |
Source Code:kernel\cgroup\cpuset.c |
Create Date:2022-07-28 11:16:12 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:alloc_cpumasks - allocate three cpumasks for cpuset*@cs: the cpuset that have cpumasks to be allocated.*@tmp: the tmpmasks structure pointer* Return: 0 if successful, -ENOMEM otherwise.* Only one of the two input arguments should be non-NULL.
Proto:static inline int alloc_cpumasks(struct cpuset *cs, struct tmpmasks *tmp)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cpuset * | cs | |
| struct tmpmasks * | tmp |
| 464 | If cs Then |
| 468 | Else |
| 474 | If Not zalloc_cpumask_var(pmask1, GFP_KERNEL) Then Return -ENOMEM |
| 477 | If Not zalloc_cpumask_var(pmask2, GFP_KERNEL) Then Go to free_one |
| 480 | If Not zalloc_cpumask_var(pmask3, GFP_KERNEL) Then Go to free_two |
| 483 | Return 0 |
| 485 | free_two : |
| 486 | free_cpumask_var( * pmask2) |
| 487 | free_one : |
| 488 | free_cpumask_var( * pmask1) |
| 489 | Return -ENOMEM |
| Name | Describe |
|---|---|
| alloc_trial_cpuset | alloc_trial_cpuset - allocate a trial cpuset*@cs: the cpuset that the trial cpuset duplicates |
| update_prstate | pdate_prstate - update partititon_root_state* Call with cpuset_mutex held. |
| cpuset_css_alloc | puset_css_alloc - allocate a cpuset css* cgrp: control group that the new cpuset will be part of |
| cpuset_hotplug_workfn | CPU / memory hotplug is handled asynchronously. |
| 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 |