DeviceInit
Defined in: src/device.ts:110
Extends
Section titled “Extends”Partial<Pick<Device,"name"|"parent"|"id"|"bus"|"driver"|"type"|"class"|"dev_t"|"kobj_parent"|"of_node">>
Properties
Section titled “Properties”
optionalbus?:BusType<Device<unknown>,DeviceDriver<Device<unknown>>>
Defined in: src/device.ts:128
Inherited from
Section titled “Inherited from”class?
Section titled “class?”
optionalclass?:Class
Defined in: src/device.ts:131
Inherited from
Section titled “Inherited from”dev_t?
Section titled “dev_t?”
optionaldev_t?:DevT
Defined in: src/device.ts:134
The device number. Devices with one get a dev attribute and a link in /sys/dev.
Inherited from
Section titled “Inherited from”driver?
Section titled “driver?”
optionaldriver?:DeviceDriver<Device<unknown>>
Defined in: src/device.ts:129
Inherited from
Section titled “Inherited from”
optionalid?:number
Defined in: src/device.ts:126
Inherited from
Section titled “Inherited from”kobj_parent?
Section titled “kobj_parent?”
optionalkobj_parent?:KObject
Defined in: src/device.ts:146
Forces where the device goes in sysfs, like setting dev->kobj.parent before register.
This is how a bus’ root device ends up somewhere like /sys/devices/system.
Inherited from
Section titled “Inherited from”
optionalname?:string
Defined in: src/device.ts:122
Inherited from
Section titled “Inherited from”of_node?
Section titled “of_node?”
optionalof_node?:object&object
Defined in: src/device.ts:137
The device tree node this device was created from, i.e. dev->of_node
Type Declaration
Section titled “Type Declaration”
optionalid?:string
What the device is called under /sys/devices/platform. One is made up when there isn’t one.
kind:
"xterm"
Type Declaration
Section titled “Type Declaration”options?
Section titled “options?”
optionaloptions?:AttachXTermOptions
terminal
Section titled “terminal”terminal:
XTermLike
Inherited from
Section titled “Inherited from”Partial.of_node
parent?
Section titled “parent?”
optionalparent?:Device<unknown> |null
Defined in: src/device.ts:124
Inherited from
Section titled “Inherited from”
optionaltype?:DeviceType
Defined in: src/device.ts:130