Name
IO Simulation -- Simulation of the device
Description
This functions serve to manage the disk's simulation and it's data structures.
Details
init_IO_simulation ()
gint init_IO_simulation (void); |
initialices the IO simulation code.
IO_algorithm_event ()
gint IO_algorithm_event (io_request_t *request); |
Insert a new request in the IO subsystem using the current algorith.
Mainly passes request over to the current algorithm and puts it the the queue
of requested blocks.
get_IO_head_pos ()
gint get_IO_head_pos (void); |
get_IO_reading_queue ()
Get all pending requests as ordered by the current algoritym.
set_IO_reading_queue ()
void set_IO_reading_queue (io_queue_t new_reading); |
Sets the request's "reading" queue.
This function should be called when ever the reading queue is modified by
external means, even if the pointer to the queue is not changed.
get_IO_requested_queue ()
Get all pending requests in order of arrival.