Function report |
Source Code:block\bfq-iosched.c |
Create Date:2022-07-28 17:58:20 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bfq_init_queue
Proto:static int bfq_init_queue(struct request_queue *q, struct elevator_type *e)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct request_queue * | q | |
struct elevator_type * | e |
6426 | eq = elevator_alloc(q, e) |
6431 | If Not bfqd Then |
6433 | Return -ENOMEM |
6435 | elevator_data = bfqd |
6437 | spin_lock_irq( & queue_lock) |
6439 | spin_unlock_irq( & queue_lock) |
6446 | bfq_init_bfqq(bfqd, & fallback dummy bfqq for extreme OOM conditions , NULL, 1, 0) |
6447 | ce counter ++ |
6450 | next weight if a change is in progress = bfq_ioprio_to_weight(xt ioprio and ioprio class if a change is in progress ) |
6463 | device request queue = q |
6469 | function = Handler of the expiration of the timer running if the in-service queue* is idling inside its time slice. |
6476 | INIT_HLIST_HEAD( & * Head of the burst list (as for the above fields, more * details in the comments on the function bfq_handle_burst).) |
6479 | true if the device is non rotational and performs queueing = blk_queue_nonrot( device request queue ) |
6481 | maximum budget allotted to a bfq_queue before rescheduling = Default maximum budget values, in sectors and number of requests. |
6483 | * Timeout for async/sync requests; when it fires, requests * are served in fifo order.[0] = Expiration time of sync (0) and async (1) requests, in ns. [0] |
6484 | * Timeout for async/sync requests; when it fires, requests * are served in fifo order.[1] = Expiration time of sync (0) and async (1) requests, in ns. [1] |
6521 | Process spin lock initialization( & lock) |
6539 | If Not root bfq_group for the device Then Go to out_free |
6542 | bfq_init_entity( & ity representing this queue in the scheduler , root bfq_group for the device ) |
6544 | wbt_disable_default(q) |
6545 | Return 0 |
6547 | out_free : |
6550 | Return -ENOMEM |
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 |