IO Interface

Name

IO Interface -- IO interface to the other subsystems.

Synopsis


void        (*block_ready_callback_t)       (gint block);
gint        io_register_block_ready         (block_ready_callback_t func);
void        io_request_block                (gint block);
void        io_request_swap_block           (gint block);

Description

This functions allow the other subsystems to interact, througth the messaging service, with the I/O subsystem.

Details

block_ready_callback_t ()

void        (*block_ready_callback_t)       (gint block);

Function pointer type for the callback used on io_register_block_ready.

block :block number of the fulfilled IO access.


io_register_block_ready ()

gint        io_register_block_ready         (block_ready_callback_t func);

Instructs the IO subsystem to call func when a block access is finished.

func : function to be called when a requested block access is finished.
Returns : nothing important.


io_request_block ()

void        io_request_block                (gint block);

Instructs the IO subsystem to accesses block from the data area.

block : data block to be accessed.


io_request_swap_block ()

void        io_request_swap_block           (gint block);

Instructs the IO subsystem to accesses block from the swap area.

block : swap block to be accessed.