Documentation ¶
Index ¶
- func CmdEmulateInquiry(cmd Command, dev Device) int
- func CmdEmulateModeSelect(cmd Command) int
- func CmdEmulateModeSense(cmd Command) int
- func CmdEmulateServiceActionIn(cmd Command, numLbas int64, blockSize int) int
- func CmdEmulateTestUnitReady(cmd Command) int
- func CmdGetLba(cmd Command) int64
- func CmdGetScsiCmd(cmd Command) byte
- func CmdGetXferLength(cmd Command) int
- func CmdMemcpyFromIovec(cmd Command, buf []byte, length int) int
- func CmdMemcpyIntoIovec(cmd Command, buf []byte, length int) int
- func CmdSetMediumError(cmd Command) int
- func GetDevConfig(volume string) string
- func New() types.Frontend
- func PostEnableTcmu(volume string) error
- func PreEnableTcmu(volume string, size, sectorSize int64) error
- func TeardownTcmu(volume string) error
- type Cbuffer
- type Command
- type Device
- type State
- type Tcmu
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdEmulateInquiry ¶
func CmdEmulateModeSelect ¶
func CmdEmulateModeSense ¶
func CmdEmulateTestUnitReady ¶
func CmdGetScsiCmd ¶
func CmdGetXferLength ¶
func CmdSetMediumError ¶
func GetDevConfig ¶
func PostEnableTcmu ¶
func PreEnableTcmu ¶
func TeardownTcmu ¶
Types ¶
type Command ¶
type Command *C.struct_tcmulib_cmd
type Device ¶
type Device *C.struct_tcmu_device
type State ¶
func (*State) HandleRequest ¶
Click to show internal directories.
Click to hide internal directories.