include blockdev.inc mov edi, OFFSET32 bdd ; points to a BlockDev_Device_Descriptor VXDcall BlockDev_Register_Device jc error ; error if carry flag set |
The BlockDev_Register_Device service registers the specified Interrupt 13h device.
This service is available during initialization only.
bdd
Points to a BlockDev_Device_Descriptor structure containing information about the block device to be registered.
If the carry flag is clear, the block device is registered. Otherwise, the carry flag is set to indicate an error.
Virtual devices supporting block devices usually call this service to register their devices during the Sys_Critical_Init phase of device initialization.
This service returns an error if the Interrupt 13h device has already been registered by a virtual device, or the Interrupt 13h drive has not been installed.