| 函数逻辑报告 | 
| Source Code: block\blk-core.c | Create Date:2022-07-27 18:34:48 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:lk_alloc_queue_node - allocate a request queue*@gfp_mask: memory allocation flags*@node_id: NUMA node to allocate memory from
函数原型:struct request_queue *blk_alloc_queue_node(gfp_t gfp_mask, int node_id)
返回类型:struct request_queue
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| gfp_t | gfp_mask | |
| int | node_id | 
| 484 | q等于在指定节点上分配一个对象 | 
| 486 | 如果非q则返回: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) | 
| 500 | 如果非backing_dev_info则转到:fail_split | 
| 503 | stats等于blk_alloc_queue_stats() | 
| 504 | 如果非stats则转到:fail_stats | 
| 509 | name等于"block" | 
| 515 | INIT_WORK( & timeout_work, blk_timeout_work) | 
| 516 | 初始化链表头 | 
| 518 | 初始化链表头 | 
| 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) | 
| 528 | spin_lock_init( & queue_lock) | 
| 530 | init_waitqueue_head( & mq_freeze_wq) | 
| 542 | 如果blkcg_init_queue(q)则转到:fail_ref | 
| 545 | 返回: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 | 返回:NULL | 
| 名称 | 描述 | 
|---|---|
| blk_alloc_queue | |
| blk_mq_init_queue | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |