Function lrs::file::create_device

Creates a device special file.

Syntax

fn create_device<P>(path: P, dev: Device, mode: Mode) -> Result<(), Errno>
    where P: ToCString,

Arguments

NameDescription
path

The path at which the file will be created.

dev

The device special file to create.

mode

The mode of the new file.

Remarks

If the path is relative, it will be interpreted relative to the current working directory.

See also