Procesor Interface

Name

Procesor Interface -- CPU interface to the other subsystems.

Synopsis


void        cpu_register_proc_creat         (proc_creat_callback_t func);
void        cpu_register_proc_finish        (proc_finish_callback_t func);
void        (*proc_creat_callback_t)        (gint pid);
void        (*proc_finish_callback_t)       (gint pid);
void        CPU_terminate_proc              (gint pid);

Description

This functions allow the other subsystems to interact, througth the messaging service, with the CPU.

Details

cpu_register_proc_creat ()

void        cpu_register_proc_creat         (proc_creat_callback_t func);

Registers func to be called when ever a new process gets created.

func : function to be called.


cpu_register_proc_finish ()

void        cpu_register_proc_finish        (proc_finish_callback_t func);

Registers func to be called when ever a process is terminated.

func : function to be called.


proc_creat_callback_t ()

void        (*proc_creat_callback_t)        (gint pid);

Function pointer type for the callback used on cpu_register_proc_creat.

pid :Process ID of the created process.


proc_finish_callback_t ()

void        (*proc_finish_callback_t)       (gint pid);

Function pointer type for the callback used on cpu_register_proc_finish.

pid :Process ID of the terminated process.


CPU_terminate_proc ()

void        CPU_terminate_proc              (gint pid);

Terminate process pid.

pid : Process to terminates.