Function report |
Source Code:kernel\sched\deadline.c |
Create Date:2022-07-28 09:40:01 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:If the entity depleted all its runtime, and if we want it to sleep* while waiting for some new execution time to become available, we* set the bandwidth replenishment timer to the replenishment instant* and try to activate it
Proto:static int start_dl_timer(struct task_struct *p)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | p |
| 923 | timer = * Bandwidth enforcement timer. Each -deadline task has its * own bandwidth to be enforced, thus we need one timer per task. |
| 928 | lockdep_assert_held( & runqueue lock: ) |
| 935 | act = ns_to_ktime(dl_next_period(dl_se)) |
| 936 | now = hrtimer_cb_get_time(timer) |
| 937 | delta = Convert ktime_t to nanoseconds - rq_clock(rq) |
| 945 | If ktime_us_delta(act, now) < 0 Then Return 0 |
| 958 | get_task_struct(p) |
| 962 | Return 1 |
| Name | Describe |
|---|---|
| dl_check_constrained_dl | During the activation, CBS checks if it can reuse the current task's* runtime and period |
| update_curr_dl | Update the current task's runtime statistics (provided it is still* a -deadline task and has not been removed from the dl_rq). |
| 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 |