Interface Device<TData>

A device

Maybe add major/minor number or some other device information, like a UUID?

interface Device<TData> {
    data: TData;
    driver: DeviceDriver<any>;
    ino: bigint;
    major: number;
    minor: number;
}

Type Parameters

  • TData = any

Properties

data: TData

Data associated with a device. This is meant to be used by device drivers.

driver: DeviceDriver<any>

The device's driver

ino: bigint

Which inode the device is assigned

major: number

Major device number

minor: number

Minor device number