BlockDev_Register_Device

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.

Parameters

bdd

Points to a BlockDev_Device_Descriptor structure containing information about the block device to be registered.

Return Value

If the carry flag is clear, the block device is registered. Otherwise, the carry flag is set to indicate an error.

Comments

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.