package devices

import "github.com/docker/libnetwork/Godeps/_workspace/src/github.com/opencontainers/runc/libcontainer/devices"

Index

Variables

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

Functions

func DeviceFromPath

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

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

func HostDevices

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

func Major

func Major(devNumber int) int64

func Minor

func Minor(devNumber int) int64

Source Files

devices_unix.go number.go

Version
v0.7.0-dev.1
Published
Feb 11, 2016
Platform
linux/amd64
Imports
7 packages
Last checked
6 hours ago

Tools for package owners.