Skip to content

DeviceDriverInit

Defined in: src/drivers/base/driver.ts:13

TDevice extends Device = Device

optional attrs?: Record<string, DriverAttribute>

Defined in: src/drivers/base/driver.ts:31


bus: BusType

Defined in: src/drivers/base/driver.ts:15


optional dev_attrs?: Record<string, DeviceAttribute>

Defined in: src/drivers/base/driver.ts:32


optional disableSysfsBind?: boolean

Defined in: src/drivers/base/driver.ts:23

Don’t add the bind and unbind attributes


optional mod_name?: string

Defined in: src/drivers/base/driver.ts:20

Used for built-in modules


name: string

Defined in: src/drivers/base/driver.ts:14


optional of_match_table?: readonly "xterm"[]

Defined in: src/drivers/base/driver.ts:29

The device tree node kinds this driver handles, i.e. driver->of_match_table. A kind is our equivalent of compatible.


optional owner?: Module

Defined in: src/drivers/base/driver.ts:18

The module this driver is part of. Built-in drivers don’t have one.


optional probe?: (device) => boolean

Defined in: src/drivers/base/driver.ts:34

TDevice

boolean


optional remove?: (device) => void

Defined in: src/drivers/base/driver.ts:36

TDevice

void


optional resume?: (device) => void

Defined in: src/drivers/base/driver.ts:40

TDevice

void


optional shutdown?: (device) => void

Defined in: src/drivers/base/driver.ts:37

TDevice

void


optional suspend?: (device) => void

Defined in: src/drivers/base/driver.ts:39

TDevice

void