Function report |
Source Code:block\bfq-wf2q.c |
Create Date:2022-07-28 17:59:47 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:q_bfqq_charge_time - charge an amount of service equivalent to the length* of the time interval during which bfqq has been in* service
Proto:void bfq_bfqq_charge_time(struct bfq_data *bfqd, struct bfq_queue *bfqq, unsigned long time_ms)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct bfq_data * | bfqd | |
struct bfq_queue * | bfqq | |
unsigned long | time_ms |
889 | timeout_ms = Convert jiffies to milliseconds and back.* Avoid unnecessary multiplications/divisions in the* two most common HZ cases: |
890 | bounded_time_ms = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(time_ms, timeout_ms) |
891 | serv_to_charge_for_time = maximum budget allotted to a bfq_queue before rescheduling * bounded_time_ms / timeout_ms |
896 | If tot_serv_to_charge > budget, used also to calculate F_i: F_i = S_i + @budget / @weight Then budget, used also to calculate F_i: F_i = S_i + @budget / @weight = tot_serv_to_charge |
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 |