Function report |
Source Code:mm\percpu.c |
Create Date:2022-07-28 14:27:43 |
| Last Modify:2022-05-23 13:52:24 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:pcpu_dump_alloc_info - print out information about pcpu_alloc_info*@lvl: loglevel*@ai: allocation info to dump* Print out information about @ai using loglevel @lvl.
Proto:static void pcpu_dump_alloc_info(const char *lvl, const struct pcpu_alloc_info *ai)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const char * | lvl | |
| const struct pcpu_alloc_info * | ai |
| 2170 | group_width = 1 , cpu_width = 1 |
| 2171 | empty_str[] = "--------" |
| 2176 | v = 0 if grouping unnecessary |
| 2178 | group_width++ |
| 2180 | v = num_possible_cpus() |
| 2182 | cpu_width++ |
| 2183 | empty_str[min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, cpu_width, size of empty_str - 1)] = '\0' |
| 2185 | upa = alloc_size / unit_size |
| 2186 | width = upa * (cpu_width + 1) + group_width + 3 |
| 2193 | When group < 0 if grouping unnecessary cycle |
| 2197 | BUG_ON( aligned # of units % upa) |
| 2204 | Like KERN_CONT, pr_cont() should only be used when continuing* a line with no newline ('\n') enclosed. Otherwise it defaults* back to KERN_DEFAULT.("[%0*d] ", group_width, group) |
| 2206 | When unit < unit_end cycle If unit->cpu map, empty * entries contain NR_CPUS [unit] != Places which use this should consider cpumask_var_t. Then |
| Name | Describe |
|---|---|
| pcpu_setup_first_chunk | pcpu_setup_first_chunk - initialize the first percpu chunk*@ai: pcpu_alloc_info describing how to percpu area is shaped*@base_addr: mapped address* Initialize the first percpu chunk which contains the kernel static* percpu area |
| 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 |