Interface KernelDevice
interface KernelDevice {
pkg: {
author?: string;
description?: string;
homepage?: string;
name: string;
version: string;
};
cli(options: KernelDeviceCLIOptions): Promise<number>;
getDrivers(kernel: Kernel): Promise<DeviceDriver<any>[]>;
}
pkg: {
author?: string;
description?: string;
homepage?: string;
name: string;
version: string;
};
cli(options: KernelDeviceCLIOptions): Promise<number>;
getDrivers(kernel: Kernel): Promise<DeviceDriver<any>[]>;
}
Index
Properties
Methods
Properties
pkg
pkg: {
author?: string;
description?: string;
homepage?: string;
name: string;
version: string;
}
author?: string;
description?: string;
homepage?: string;
name: string;
version: string;
}
Package metadata for the device
Methods
Optional
cli
- cli(options: KernelDeviceCLIOptions): Promise<number>
Optional CLI handler for the device
Parameters
- options: KernelDeviceCLIOptions
CLI options passed to the device
Returns Promise<number>
Promise resolving to exit code
- options: KernelDeviceCLIOptions
Interface representing a kernel device. This essentially "wraps" one or many zenfs devices and provides metadata and a CLI interface for it.