Function report | 
Source Code:kernel\sched\core.c | 
Create Date:2022-07-28 09:35:47 | 
| Last Modify:2022-05-22 13:40:38 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:rk()/clone()-time setup:
Proto:int sched_fork(unsigned long clone_flags, struct task_struct *p)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned long | clone_flags | |
| struct task_struct * | p | 
| 2856 | prio = normal_prio | 
| 2858 | uclamp_fork(p) | 
| 2864 | If task_has_dl_policy(p) || task_has_rt_policy(p) Then | 
| 2865 | policy = Scheduling policies | 
| 2866 | static_prio = Convert user-nice values [ -20 ... 0 ... 19 ]* to static priority [ MAX_RT_PRIO..MAX_PRIO-1 ],* and back.(0) | 
| 2867 | rt_priority = 0 | 
| 2868 | Else if PRIO_TO_NICE(static_prio) < 0 Then static_prio = Convert user-nice values [ -20 ... 0 ... 19 ]* to static priority [ MAX_RT_PRIO..MAX_PRIO-1 ],* and back.(0) | 
| 2872 | set_load_weight(p, false) | 
| 2883 | Else if rt_prio(prio) Then sched_class = rt_sched_class | 
| 2885 | Else sched_class = fair_sched_class | 
| 2888 | init_entity_runnable_average( & se) | 
| 2902 | __set_task_cpu(p, smp_processor_id()) | 
| 2919 | Return 0 | 
| 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  |