Function report |
Source Code:kernel\irq\affinity.c |
Create Date:2022-07-28 10:15:49 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:alloc_node_to_cpumask
Proto:static cpumask_var_t *alloc_node_to_cpumask(void)
Type:cpumask_var_t
Parameter:Nothing
| 48 | masks = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
| 49 | If Not masks Then Return NULL |
| 52 | When node < nr_node_ids cycle |
| 53 | If Not zalloc_cpumask_var( & masks[node], GFP_KERNEL) Then Go to out_unwind |
| 57 | Return masks |
| 59 | out_unwind : |
| 61 | free_cpumask_var(masks[node]) |
| 63 | Return NULL |
| Name | Describe |
|---|---|
| irq_build_affinity_masks | ld affinity in two stages:* 1) spread present CPU on these vectors* 2) spread other possible CPUs on these vectors |
| 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 |