Method lrs::file::File::rel_create_device

Creates a device special file relative to this file.

Syntax

impl File {
    fn rel_create_device<P>(&self, path: P, dev: Device, mode: Mode) -> Result<(), Errno>
        where P: ToCString,
}

Arguments

NameDescription
path

The path to the new file.

dev

The device to be created.

mode

The mode of the file.

Remarks

If the path is relative, this file must be a directory and the path will be interpreted relative to it.

See also