| 函数逻辑报告 | 
| Source Code: block\bsg-lib.c | Create Date:2022-07-27 19:14:06 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:sg_prepare_job - create the bsg_job structure for the bsg request*@dev: device that is being sent the bsg request*@req: BSG request that needs a job structure
函数原型:static bool bsg_prepare_job(struct device *dev, struct request *req)
返回类型:bool
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct device * | dev | |
| struct request * | req | 
| 223 | job等于lk_mq_rq_to_pdu - cast a request to a PDU*@rq: the request to be casted* Return: pointer to the PDU* Driver command data is immediately after the request. So add request to get* the PDU. | 
| 228 | 如果bio则 | 
| 230 | 如果ret则转到:failjob_rls_job | 
| 233 | 如果 BIDI support 则 | 
| 234 | ret等于bsg_map_buffer( & reply_payload, BIDI support ) | 
| 235 | 如果ret则转到:failjob_rls_rqst_payload | 
| 241 | 初始化对象 | 
| 242 | 返回:true | 
| 244 | failjob_rls_rqst_payload : | 
| 245 | 释放内存 | 
| 246 | failjob_rls_job : | 
| 248 | 返回:false | 
| 名称 | 描述 | 
|---|---|
| bsg_queue_rq | sg_queue_rq - generic handler for bsg requests*@hctx: hardware queue*@bd: queue data* On error the create_bsg_job function should return a -Exyz error value* that will be set to ->result.* Drivers/subsys should pass this to the queue init function. | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |