Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bsg-lib.c Create Date:2022-07-28 17:38:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bsg_transport_check_proto

Proto:static int bsg_transport_check_proto(struct sg_io_v4 *hdr)

Type:int

Parameter:

TypeParameterName
struct sg_io_v4 *hdr
28  If [i] 0 -> SCSI , .... != BSG_PROTOCOL_SCSI || [i] 0 -> SCSI command, 1 -> SCSI task management function, .... != BSG_SUB_PROTOCOL_SCSI_TRANSPORT Then Return -EINVAL
31  If Not Check operation authority Then Return -EPERM
33  Return 0