Function report |
Source Code:block\blk-core.c |
Create Date:2022-07-28 16:59:35 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lk_alloc_queue_node - allocate a request queue*@gfp_mask: memory allocation flags*@node_id: NUMA node to allocate memory from
Proto:struct request_queue *blk_alloc_queue_node(gfp_t gfp_mask, int node_id)
Type:struct request_queue
Parameter:
| Type | Parameter | Name |
|---|---|---|
| gfp_t | gfp_mask | |
| int | node_id |
| 486 | If Not q Then Return NULL |
| 489 | last_merge = NULL |
| 491 | * ida allocated id for this queue. Used to index queues from * ioctx. = ida_simple_get( & blk_queue_ida, 0, 0, gfp_mask) |
| 492 | If * ida allocated id for this queue. Used to index queues from * ioctx. < 0 Then Go to fail_q |
| 500 | If Not backing_dev_info Then Go to fail_split |
| 503 | stats = blk_alloc_queue_stats() |
| 504 | If Not stats Then Go to fail_stats |
| 509 | name = "block" |
| 515 | INIT_WORK( & timeout_work, blk_timeout_work) |
| 526 | mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & sysfs_lock) |
| 527 | mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & sysfs_dir_lock) |
| 530 | init_waitqueue_head( & mq_freeze_wq) |
| 542 | If blkcg_init_queue(q) Then Go to fail_ref |
| 545 | Return q |
| 547 | fail_ref : |
| 549 | fail_bdi : |
| 551 | fail_stats : |
| 552 | bdi_put(backing_dev_info) |
| 553 | fail_split : |
| 555 | fail_id : |
| 556 | ida_simple_remove( & blk_queue_ida, * ida allocated id for this queue. Used to index queues from * ioctx.) |
| 557 | fail_q : |
| 559 | Return NULL |
| Name | Describe |
|---|---|
| blk_alloc_queue | |
| 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 |