函数逻辑报告 |
Source Code:block\bsg.c |
Create Date:2022-07-27 19:13:26 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:bsg_register_queue
函数原型:int bsg_register_queue(struct request_queue *q, struct device *parent, const char *name, const struct bsg_ops *ops)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct request_queue * | q | |
| struct device * | parent | |
| const char * | name | |
| const struct bsg_ops * | ops |
| 417 | 如果非queue_is_mq(q)则返回:0 |
| 423 | mutex_lock( & bsg_mutex) |
| 426 | 如果ret小于0则 |
| 431 | 转到:unlock |
| 439 | 如果是错误则 |
| 441 | 转到:idr_remove |
| 445 | 如果 sysfs directory entry 则 |
| 446 | ret等于sysfs_create_link( & * queue kobject, & kobj, "bsg") |
| 447 | 如果ret则转到:unregister_class_dev |
| 452 | 返回:0 |
| 454 | unregister_class_dev : |
| 456 | idr_remove : |
| 457 | 删除释放idr |
| 458 | unlock : |
| 460 | 返回:ret |
| 名称 | 描述 |
|---|---|
| bsg_scsi_register_queue | |
| bsg_setup_queue | 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 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |