函数逻辑报告 |
Source Code:block\bfq-iosched.c |
Create Date:2022-07-27 19:33:58 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:bfq_init_queue
函数原型:static int bfq_init_queue(struct request_queue *q, struct elevator_type *e)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct request_queue * | q | |
struct elevator_type * | e |
6426 | eq等于elevator_alloc(q, e) |
6430 | bfqd等于根据内存节点分配内存 |
6431 | 如果非bfqd则 |
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 |
6465 | 初始化链表头 |
6469 | function等于Handler of the expiration of the timer running if the in-service queue* is idling inside its time slice. |
6474 | 初始化链表头 |
6475 | 初始化链表头 |
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 | spin_lock_init( & lock) |
6539 | 如果非 root bfq_group for the device 则转到: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 | 返回:0 |
6547 | out_free : |
6548 | 释放内存 |
6549 | 递减引用计数对象 |
6550 | 返回:负ENOMEM |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |