June 23, 2010 T13/2132-D Revision 3
Working Draft Enhanced Disk Drive - 4 (EDD-4) 47
8.19 Eject Removable Media (FN 46h)
This function shall eject media from the specified device. If a fixed disk (non-removable device) supports the
media locking and ejecting interface subset, this function shall always return with "Volume Not Removable" (i.e.,
CF = 1 and AH = B2h). An attempt to eject media locked in a device shall return with "Media Locked In Device"
(i.e., CF 1 and AH = B1h). Actual ejection shall be implementation dependent, but system software that issues or
observes this function should flush any buffers it is holding. If this function is issued for a device without media
the request shall be returned with "No Media In Device" (i.e., CF = 1b and AH = 31h). If this call is issued to an
unlocked removable media device that has media present, an INT 15h, FN 52h (removable media eject) shall be
issued to determine if eject removable media may proceed with the ejection request. If INT 15h returns an error,
the ejection request shall be rejected. If the ejection request is accepted, followed by an unrecoverable error, this
function shall return with "Valid Eject Request Failed" (i.e., CF = 1b and AH = B5h).
Entry
AH 46h
AL 00h
DL BIOS device number
Exit
Carry Clear Function completed without error
AH Shall be cleared to zero
Carry Set Function completed with an error
AH Shall be set to the error code (see table 10)