Function report |
Source Code:block\blk-mq.c |
Create Date:2022-07-28 17:11:29 |
| 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_alloc_and_init_hctx
Proto:static struct blk_mq_hw_ctx *blk_mq_alloc_and_init_hctx(struct blk_mq_tag_set *set, struct request_queue *q, int hctx_idx, int node)
Type:struct blk_mq_hw_ctx
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct blk_mq_tag_set * | set | |
| struct request_queue * | q | |
| int | hctx_idx | |
| int | node |
| 2720 | spin_lock( & unused_hctx_lock) |
| 2722 | If @numa_node: NUMA node the storage adapter has been connected to. == node Then |
| 2727 | If hctx Then list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list. |
| 2729 | spin_unlock( & unused_hctx_lock) |
| 2739 | Return hctx |
| 2741 | free_hctx : |
| 2743 | fail : |
| 2744 | Return NULL |
| Name | Describe |
|---|---|
| blk_mq_realloc_hw_ctxs |
| 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 |