| Function report | 
| Source Code: block\blk-mq.c | Create Date:2022-07-28 17:11:22 | 
| Last Modify:2020-03-17 23:18:05 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:All allocations will be freed in release handler of q->mq_kobj
Proto:static int blk_mq_alloc_ctxs(struct request_queue *q)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct request_queue * | q | 
| 2608 | ctxs = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). | 
| 2612 | queue_ctx = alloc_percpu(structblk_mq_ctx) | 
| 2616 | for_each_possible_cpu(cpu) | 
| 2621 | * mq queue kobject = kobj | 
| 2624 | Return 0 | 
| 2625 | fail : | 
| 2627 | Return -ENOMEM | 
| Name | Describe | 
|---|---|
| blk_mq_init_allocated_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 |