createDevice

fun createDevice(cgroupPermissions: String, pathInContainer: Path, pathOnHost: Path): Device

Creates a Device which binds to /dev.

Return

A Device with the specified parameters.

Parameters

cgroupPermissions

cgroup permissions to grant the device.

pathInContainer

The path of the device on the host.