函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\scsi_ioctl.c Create Date:2022-07-27 19:12:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:scsi_req_init - initialize certain fields of a scsi_request structure*@req: Pointer to a scsi_request structure.* Initializes .__cmd[], .cmd, .cmd_len and .sense_len but no other members* of struct scsi_request.

函数原型:void scsi_req_init(struct scsi_request *req)

返回类型:void

参数:

类型参数名称
struct scsi_request *req
805  memset(__cmd, 0, __cmd的长度)
806  cmd等于__cmd
807  cmd_len等于BLK_MAX_CDB
808  sense_len等于0