[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]


   NAME
       CD_GETGEOMETRY -- return the geometry of the drive.

   FUNCTION
       This command returns a full set of information about the
       layout of the drive. The information is returned in the
       drivegeometry structure pointed to by io_data.

   IO REQUEST INPUT
       io_Device       preset by the call to opendevice()
       io_Unit         preset by the call to opendevice()
       io_Command      CD_GETGEOMETRY
       io_Data         pointer to a drivegeometry structure
       io_Length       sizeof(struct DriveGeometry)

   IO REQUEST RESULT
       io_Error  - 0 for success, or an error code as defined in
                   <devices/cd.h>
       io_Actual - length of data transferred.

   SEE ALSO
       CD_GETNUMTRACKS, <devices/trackdisk.h>