package devices
import "github.com/opencontainers/runc/libcontainer/devices"
Package devices provides some helper functions for constructing device configurations for runc. These are exclusively used by higher-level runtimes that need to configure runc's device list based on existing devices.
Index ¶
- Variables
- func DeviceFromPath(path, permissions string) (*config.Device, error)
- func GetDevices(path string) ([]*config.Device, error)
- func HostDevices() ([]*config.Device, error)
Variables ¶
ErrNotADevice denotes that a file is not a valid linux device.
Functions ¶
func DeviceFromPath ¶
DeviceFromPath takes the path to a device and its cgroup_permissions (which cannot be easily queried) to look up the information about a linux device and returns that information as a Device struct.
func GetDevices ¶
GetDevices recursively traverses a directory specified by path and returns all devices found there.
func HostDevices ¶
HostDevices returns all devices that can be found under /dev directory.
Source Files ¶
- Version
- v1.5.0-rc.1
- Published
- Mar 13, 2026
- Platform
- darwin/amd64
- Imports
- 5 packages
- Last checked
- 7 minutes ago –
Tools for package owners.