Function report |
Source Code:block\blk-mq.c |
Create Date:2022-07-28 17:11:40 |
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_init_allocated_queue
Proto:struct request_queue *blk_mq_init_allocated_queue(struct blk_mq_tag_set *set, struct request_queue *q, bool elevator_init)
Type:struct request_queue
Parameter:
Type | Parameter | Name |
---|---|---|
struct blk_mq_tag_set * | set | |
struct request_queue * | q | |
bool | elevator_init |
2838 | If All allocations will be freed in release handler of q->mq_kobj Then Go to err_poll |
2842 | sysfs helpers |
2847 | blk_mq_realloc_hw_ctxs(set, q) |
2848 | If Not nr_hw_queues Then Go to err_hctxs |
2851 | INIT_WORK( & timeout_work, blk_mq_timeout_work) |
2852 | blk_queue_rq_timeout(q, timeout ? timeout : 30 * HZ) |
2857 | If nr_maps > HCTX_TYPE_POLL && nr_queues Then lk_queue_flag_set - atomically set a queue flag*@flag: flag to be set*@q: request queue |
2861 | sg_reserved_size = INT_MAX |
2863 | INIT_DELAYED_WORK( & requeue_work, blk_mq_requeue_work) |
2872 | Max # of requests = queue_depth |
2877 | poll_nsec = Doing classic polling |
2879 | blk_mq_init_cpu_queues(q, nr_hw_queues) |
2880 | blk_mq_add_queue_tag_set(set, q) |
2881 | blk_mq_map_swqueue(q) |
2886 | Return q |
2888 | err_hctxs : |
2889 | kfree( hw dispatch queues ) |
2890 | nr_hw_queues = 0 |
2891 | blk_mq_sysfs_deinit(q) |
2892 | err_poll : |
2894 | poll_cb = NULL |
2895 | err_exit : |
2896 | mq_ops = NULL |
Name | Describe |
---|---|
blk_mq_init_queue |
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 |