| The Möbius Operating System: driver_t struct Reference | |||||||||||||||||||||||||||||||||||||||||
| HOME | DOWNLOAD | DOCUMENTATION | SCREENSHOTS | ||||||||||||||||||||||||||||||||||||||
driver_t Struct ReferenceDevice driver structure.
More...
|
|||||||||||||||||||||||||||||||||||||||||
Data Fields | |
| module_t * | mod |
| driver_t * | prev |
| driver_t * | next |
| void(* | add_device )(driver_t *driver, const wchar_t *name, dev_config_t *config) |
| Called when a device supported by the driver is added. | |
| fsd_t *(* | mount_fs )(driver_t *driver, const wchar_t *dest) |
| Called when a file system supported by the driver is mounted. | |
The device manager maintains one of these for every driver. It is created by DevInstallNewDriver and freed by DevRemove.
|
|
Called when a device supported by the driver is added. This function is provided by the driver; it needs to determine the device type required, allocate a device object and initialize the hardware. The device will deallocate itself in response to a DEV_REMOVE request.
|
|
|
Called when a file system supported by the driver is mounted. This function fulfils much the same purpose as driver_t::mount_fs, except that it is called when FsMount needs to mount a file system. The file system driver needs to determine the format of the file system, allocate a file system device object and mount the file system. The FSD will deallocate itself in response to a DEV_REMOVE request.
|