scheduler_interrupt
Signature: void scheduler_interrupt(interrupts::s_registers* registers)
Description: Handles the timer interrupt for the scheduler
Parameters:
interrupts::s_registers* registers
Return: void
scheduler::setup
Signature: void scheduler::setup()
Description: Sets up the scheduler
Return: void
scheduler::start
Signature: void scheduler::start()
Description: Starts the scheduler
Return: void
scheduler::kill_self
Signature: void scheduler::kill_self()
Description: Kills the current task
Return: void
scheduler::create_task
Signature: task_t* scheduler::create_task(void* entry)
Description: Creates a new task
Parameters:
Return: task_t*
scheduler::handle_signal
Signature: bool scheduler::handle_signal(int signum)
Description: Sends an signal to the current task
Parameters:
Return: bool
scheduler::handle_signal_all_tasks
Signature: void scheduler::handle_signal_all_tasks(int signum)
Description: Sends an signal to all tasks
Parameters:
Return: void
scheduler::register_signal_handler_self
Signature: void scheduler::register_signal_handler_self(int signum, uint64_t handler)
Description: Registers a signal handler for the current process
Parameters:
int signum
uint64_t handler
Return: void
scheduler::set_cwd_self
Signature: void scheduler::set_cwd_self(const char* cwd)
Description: Sets the current working directory of the current process
Parameters:
Return: void
scheduler::read_running_tasks
Signature: void scheduler::read_running_tasks(task_t** tasks, int max_tasks)
Description: Get a list of all running tasks
Parameters:
task_t** tasks
int max_tasks
Return: void
scheduler::get_cwd_self
Signature: const char* scheduler::get_cwd_self()
Description: Gets the current working directory of the current process
Return: const char*
Show file on GitHub