Function report | 
Source Code:block\blk-mq.c | 
Create Date:2022-07-28 17:11:45 | 
| Last Modify:2020-03-17 23:18:05 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Allocate the request maps associated with this tag_set. Note that this* may reduce the depth asked for, if memory is tight. set->queue_depth* will be updated to reflect the allocated depth.
Proto:static int blk_mq_alloc_rq_maps(struct blk_mq_tag_set *set)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct blk_mq_tag_set * | set | 
| 2937 | depth = queue_depth | 
| 2938 | Do | 
| 2939 | err = __blk_mq_alloc_rq_maps(set) | 
| 2940 | If Not err Then Break | 
| 2943 | queue_depth >>= 1 | 
| 2944 | If queue_depth < reserved_tags + BLK_MQ_TAG_MIN Then | 
| 2948 | When queue_depth cycle | 
| 2950 | If Not queue_depth || err Then | 
| 2955 | If depth != queue_depth Then pr_info("blk-mq: reduced tag depth (%u -> %u)\n", depth, queue_depth) | 
| 2959 | Return 0 | 
| Name | Describe | 
|---|---|
| blk_mq_alloc_tag_set | Alloc a tag set to be associated with one or more request queues.* May fail with EINVAL for various error conditions. May adjust the* requested depth down, if it's too large. In that case, the set* value will be stored in set->queue_depth. | 
| 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  |