kernel/sys/process.c
/**
 * @brief Initial scheduler datastructures.
 *
 * Called by early system startup to allocate trees and lists
 * the schedule uses to track processes.
 */
@brief Initial scheduler datastructures.
Called by early system startup to allocate trees and lists
the schedule uses to track processes.
@brief Initial scheduler datastructures . Called by early system startup to allocate trees and lists the schedule uses to track processes .
void initialize_process_tree(void) {
	process_tree = tree_create();
	process_list = list_create("global process list",NULL);
	process_queue = list_create("global scheduler queue",NULL);
	sleep_queue = list_create("global timed sleep queue",NULL);
	reap_queue = list_create("processes awaiting later cleanup",NULL);
}
void initialize_process_tree ( void ) { process_tree = tree_create ( ) ; process_list = list_create ( " " , NULL ) ; process_queue = list_create ( " " , NULL ) ; sleep_queue = list_create ( " " , NULL ) ; reap_queue = list_create ( " " , NULL ) ; }
@brief Initial scheduler datastructures.
@brief Initial scheduler datastructures .
/* TODO: PID bitset? */