CharDevice
Defined in: src/fs/char_dev.ts:129
A character device driver, i.e. struct cdev.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CharDevice(
ops,owner?):CharDevice
Defined in: src/fs/char_dev.ts:136
Parameters
Section titled “Parameters”owner?
Section titled “owner?”Returns
Section titled “Returns”CharDevice
Properties
Section titled “Properties”count:
number=0
Defined in: src/fs/char_dev.ts:134
How many device numbers this is responsible for
optionaldevt?:DevT
Defined in: src/fs/char_dev.ts:131
The first device number this is responsible for. Only set while the device is added.
ops:
FileOperations
Defined in: src/fs/char_dev.ts:137
owner?
Section titled “owner?”
optionalowner?:Module
Defined in: src/fs/char_dev.ts:138
Methods
Section titled “Methods”[dispose]()
Section titled “[dispose]()”[dispose]():
void
Defined in: src/fs/char_dev.ts:177
Returns
Section titled “Returns”void
add(
dev,count):void
Defined in: src/fs/char_dev.ts:145
Publish this device’s operations for count device numbers starting at dev.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void
Throws
Section titled “Throws”EBUSY if any of the numbers already have a driver
del():
void
Defined in: src/fs/char_dev.ts:163
Stop handling device numbers. Nodes referring to them will fail to open with ENXIO.
Returns
Section titled “Returns”void