Function report |
Source Code:kernel\sched\fair.c |
Create Date:2022-07-28 09:38:51 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:yield_to_task_fair
Proto:static bool yield_to_task_fair(struct rq *rq, struct task_struct *p, bool preempt)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct rq * | rq | |
| struct task_struct * | p | |
| bool | preempt |
| 6850 | If Not on_rq || throttled_hierarchy(cfs_rq_of(se)) Then Return false |
| 6854 | set_next_buddy(se) |
| 6856 | sched_yield() is very simple* The magic of dealing with the ->skip buddy is in pick_next_entity. |
| 6858 | Return true |
| 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 |