scsi

package
v0.0.5-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrIllegalRequestMsg = "illegal SCSI request"
)
View Source
const SENSE_DATA_SIZE = 18
View Source
const (
	SENSE_ILLEGAL_REQUEST = 0x5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SENSE_DATA

type SENSE_DATA struct {
	B00                          uint8    `struc:"uint8"`
	SegmentNumber                uint8    `struc:"uint8"`
	B02                          uint8    `struc:"uint8"`
	Information                  [4]uint8 `struc:"[4]uint8"`
	AdditionalSenseLength        uint8    `struc:"uint8"`
	CommandSpecificInformation   [4]uint8 `struc:"[4]uint8"`
	AdditionalSenseCode          uint8    `struc:"uint8"`
	AdditionalSenseCodeQualifier uint8    `struc:"uint8"`
	FieldReplaceableUnitCode     uint8    `struc:"uint8"`
	SenseKeySpecific             [3]uint8 `struc:"[3]uint8"`
}

func (*SENSE_DATA) GetErrorCode

func (s *SENSE_DATA) GetErrorCode() uint8

func (*SENSE_DATA) GetSenseKey

func (s *SENSE_DATA) GetSenseKey() uint8

func (*SENSE_DATA) IsEndOfMedia

func (s *SENSE_DATA) IsEndOfMedia() bool

func (*SENSE_DATA) IsFileMark

func (s *SENSE_DATA) IsFileMark() bool

func (*SENSE_DATA) IsIncorrectLength

func (s *SENSE_DATA) IsIncorrectLength() bool

func (*SENSE_DATA) IsValid

func (s *SENSE_DATA) IsValid() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL