nvme

package
v0.0.0-...-6bd98cc Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NVME_ADMIN_GET_LOG_PAGE = 0x02
	NVME_ADMIN_IDENTIFY     = 0x06
)

Variables

View Source
var (
	NVME_IOCTL_ADMIN_CMD = ioctl.Iowr('N', 0x41, unsafe.Sizeof(nvmePassthruCommand{}))
)

Functions

This section is empty.

Types

type NVMeDevice

type NVMeDevice struct {
	Name string
	// contains filtered or unexported fields
}

func NewNVMeDevice

func NewNVMeDevice(name string) *NVMeDevice

func (*NVMeDevice) Close

func (d *NVMeDevice) Close() error

func (*NVMeDevice) Open

func (d *NVMeDevice) Open() (err error)

func (*NVMeDevice) PrintSMART

func (d *NVMeDevice) PrintSMART(db *drivedb.DriveDb, w io.Writer) error

WIP - need to split out functionality further.

Jump to

Keyboard shortcuts

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