Function report | 
Source Code:kernel\sched\stats.c | 
Create Date:2022-07-28 09:43:45 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:This itererator needs some explanation.* It returns 1 for the header position.* This means 2 is cpu 0.* In a hotplugged system some CPUs, including cpu 0, may be missing so we have* to use cpumask_* to iterate over the CPUs.
Proto:static void *schedstat_start(struct seq_file *file, loff_t *offset)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct seq_file * | file | |
| loff_t * | offset | 
| 87 | If n == 0 Then Return 1 | 
| 90 | n-- | 
| 92 | If n > 0 Then n = Valid inputs for n are -1 and 0. | 
| 94 | Else n = Uniprocessor. Assume all masks are "1". | 
| 99 | If n < nr_cpu_ids Then Return n + 2 | 
| 102 | Return NULL | 
| Name | Describe | 
|---|---|
| schedstat_next | 
| 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  |