MyOS Kernel
|
#include <tasking.h>
Data Fields | |
void * | kernel_esp |
The thread's kernel stack. | |
void * | kernel_esp_top |
The top of the thread's kernel stack. | |
void * | cr3 |
The address space of this thread. (it is in here and not in the process to simplify the task switch asembly) | |
pid_t | tid |
The TID of this thread. | |
thread_state | state |
The state of this thread. (running,ready to run,blocked,etc.) | |
int | errno |
The errno value for this thread. | |
struct Thread * | next_thread_in_process |
The next thread in the process. | |
struct Thread * | prev_thread_in_process |
The previous thread in the process. | |
struct Thread * | next_ready_to_run |
If the thread is in the ready to run list, this is the next ready to run thread. (potentially in a different process) | |
struct Thread * | prev_ready_to_run |
If the thread is in the ready to run list, this is the previous ready to run thread. (potentially in a different process) | |
Process * | process |
The thread's process. | |
Represents a thread of a process