Function report |
Source Code:mm\percpu.c |
Create Date:2022-07-28 14:27:39 |
Last Modify:2022-05-23 13:52:24 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pcpu_alloc_alloc_info - allocate percpu allocation info*@nr_groups: the number of groups*@nr_units: the number of units* Allocate ai which is large enough for @nr_groups groups containing*@nr_units units
Proto:struct pcpu_alloc_info *__init pcpu_alloc_alloc_info(int nr_groups, int nr_units)
Type:struct pcpu_alloc_info
Parameter:
Type | Parameter | Name |
---|---|---|
int | nr_groups | |
int | nr_units |
2130 | ai_size = base_size + nr_units * size of unit->cpu map, empty * entries contain NR_CPUS [0] |
2132 | ptr = memblock_alloc(PFN_ALIGN(ai_size), PAGE_SIZE) |
2133 | If Not ptr Then Return NULL |
2140 | When unit < nr_units cycle unit->cpu map, empty * entries contain NR_CPUS [unit] = Places which use this should consider cpumask_var_t. |
2144 | internal, don't use = PFN_ALIGN(ai_size) |
2146 | Return ai |
Name | Describe |
---|---|
setup_per_cpu_areas | UP percpu area setup.* UP always uses km-based percpu allocator with identity mapping.* Static percpu variables are indistinguishable from the usual static* variables and don't require any special preparation. |
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 |