Geometry

Name

Geometry -- Geometry of the device.

Synopsis


gint        get_IO_blocks_per_track         (void);
gint        get_IO_max_data_block           (void);
gint        get_IO_max_swap_block           (void);
gint        get_IO_ntracks                  (void);
gint        get_IO_last_data_track          (void);
gint        IO_request_track                (io_request_t *request);
void        init_IO_geometry                (void);

Description

This functions serve to find out the geometry of the disk and do some translations based on it.

Details

get_IO_blocks_per_track ()

gint        get_IO_blocks_per_track         (void);

Returns : the number of blocks per track.


get_IO_max_data_block ()

gint        get_IO_max_data_block           (void);

Returns : the maximun data block number.


get_IO_max_swap_block ()

gint        get_IO_max_swap_block           (void);

Returns : the maximun swap block number.


get_IO_ntracks ()

gint        get_IO_ntracks                  (void);

Returns : the number of tracks on the disk.


get_IO_last_data_track ()

gint        get_IO_last_data_track          (void);

Returns : the last data track number.


IO_request_track ()

gint        IO_request_track                (io_request_t *request);

Calculates the track of a certain request.

request : IO request involved.
Returns : the track number corespoinding to request.


init_IO_geometry ()

void        init_IO_geometry                (void);

Initialices the geometry calculation code.