ata

package
v0.0.0-...-2dc4bbf Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

30 september 2016

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedOS = fmt.Errorf("direct ATA access in user mode is not supported by this OS")

Functions

func DrivespecUsage

func DrivespecUsage() string

TODO format with command

Types

type ATA

type ATA struct {
	// contains filtered or unexported fields
}

func Open

func Open(drivespec string) (*ATA, error)

func (*ATA) Close

func (a *ATA) Close() error

func (*ATA) Read28

func (a *ATA) Read28(c *Command28, b []byte) (resp *Response28, n int, err error)

func (*ATA) Write28

func (a *ATA) Write28(c *Command28, b []byte) (resp *Response28, err eror)

type Command28

type Command28 struct {
	Features byte
	Count    byte
	LBALow   byte
	LBAMid   byte
	LBAHigh  byte
	Device   byte
	Command  byte
}

type InvalidDrivespecError

type InvalidDrivespecError string

func (InvalidDrivespecError) Error

func (e InvalidDrivespecError) Error() string

type Response28

type Response28 struct {
	Error   byte
	Count   byte
	LBALow  byte
	LBAMid  byte
	LBAHigh byte
	Device  byte
	Status  byte
}

Jump to

Keyboard shortcuts

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