devices

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2015 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotADevice = errors.New("not a device node")
)

Functions

func DeviceFromPath added in v0.4.4

func DeviceFromPath(path, permissions string) (*configs.Device, error)

Given the path to a device and it's cgroup_permissions(which cannot be easilly queried) look up the information about a linux device and return that information as a Device struct.

func HostDevices added in v0.4.4

func HostDevices() ([]*configs.Device, error)

func Major

func Major(devNumber int) int64

func Minor

func Minor(devNumber int) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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