GadgetSeed
0.9.6
|
タスクコンテキスト [詳解]
#include <tcb.h>
フィールド | |
struct tcb_queue | queue |
タスクキュー(st_tcb をst_queueにキャストするために必ず最初に定義する) | |
struct tcb_queue | timer_list |
タイムアウト待ちキュー | |
struct tcb_queue | task_list |
全タスクキュー | |
int | id |
タスクID | |
char | name [TASK_NAME_LEN+1] |
タスク名 | |
void * | sp |
スタックポインタ | |
void * | stack_addr |
スタック先頭アドレス | |
unsigned int | stack_size |
スタックサイズ | |
struct st_context | ctx |
CPUコンテキスト(CPUアーキテクチャ依存) | |
task_func | main_func |
タスク関数 | |
char * | arg |
タスク実行時引数文字列 | |
int | priority |
タスクプライオリティ | |
unsigned int | wup_time |
スリープタイムアウト時間 | |
int | status |
タスク状態(PSTAT_*) | |
struct st_device * | stdin_dev |
タスク標準入力デバイス | |
struct st_device * | stdout_dev |
タスク標準出力デバイス | |
struct st_device * | error_dev |
タスクエラー出力デバイス | |
unsigned int | meas_time |
タスク実行時間計測開始システム時間(msec) | |
unsigned int | run_time |
タスク実行時間(msec) | |
struct { | |
int type | |
システムコールタイプ | |
void * param | |
システムコール実行パラメータ | |
} | syscall |