函数逻辑报告 |
Source Code:block\bsg-lib.c |
Create Date:2022-07-27 19:14:19 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:sg_setup_queue - Create and add the bsg hooks so we can receive requests*@dev: device to attach bsg device to*@name: device to give bsg device*@job_fn: bsg job handler*@timeout: timeout handler function pointer*@dd_job_size: size of LLD data needed for
函数原型:struct request_queue *bsg_setup_queue(struct device *dev, const char *name, bsg_job_fn *job_fn, bsg_timeout_fn *timeout, int dd_job_size)
返回类型:struct request_queue
参数:
类型 | 参数 | 名称 |
---|---|---|
struct device * | dev | |
const char * | name | |
bsg_job_fn * | job_fn | |
bsg_timeout_fn * | timeout | |
int | dd_job_size |
375 | timeout_fn等于timeout |
378 | ops等于bsg_mq_ops, nr_hw_queues等于1 |
380 | queue_depth等于128 |
381 | numa_node等于NUMA_NO_NODE |
382 | cmd_size等于sizeof(structbsg_job)加dd_job_size |
387 | q等于blk_mq_init_queue(set) |
388 | 如果是错误则 |
396 | ret等于bsg_register_queue(q, dev, name, & bsg_transport_ops) |
397 | 如果ret则 |
400 | 转到:out_cleanup_queue |
403 | 返回:q |
404 | out_cleanup_queue : |
405 | 释放请求队列 |
406 | out_queue : |
407 | blk_mq_free_tag_set(set) |
408 | out_tag_set : |
409 | 释放内存 |
410 | 返回:错误号 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |