Function report | 
Source Code:block\blk-mq.c | 
Create Date:2022-07-28 17:12:00 | 
| Last Modify:2020-03-17 23:18:05 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:blk_mq_update_nr_requests
Proto:int blk_mq_update_nr_requests(struct request_queue *q, unsigned int nr)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct request_queue * | q | |
| unsigned int | nr | 
| 3130 | If Max # of requests == nr Then Return 0 | 
| 3133 | blk_mq_freeze_queue(q) | 
| 3136 | ret = 0 | 
| 3138 | If Not @tags: Tags owned by the block driver. A tag at this set is only* assigned when a request is dispatched from a hardware queue. Then Continue | 
| 3147 | Else | 
| 3151 | If ret Then Break | 
| 3153 | If elevator && depth_updated Then depth_updated(hctx) | 
| 3157 | If Not ret Then Max # of requests = nr | 
| 3161 | blk_mq_unfreeze_queue(q) | 
| 3163 | Return ret | 
| 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  |