task.h

来自「自己正在开发的一个ARM9的操作系统。详细信息请访问www.another-pr」· C头文件 代码 · 共 40 行

H
40
字号
/*
 *	ApOS (Another Project software for s3c2410)
 *	
 *	This program is free software; you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License version 2 as
 *	published by the Free Software Foundation.
 *			
 *						Copyright caiyuqing
 *
 */
#ifndef _TASK_H
#define _TASK_H

#include "../s3c2410/cpu.h"
#include "../kernel/signal.h"

struct task_struct
{
	int 		state;
	unsigned int 	priority;
	unsigned int	counter;
	unsigned int	signal;
	unsigned int 	deal_signal;
	struct sigaction sigaction[32];
	unsigned long	blocked;

	int		alarm;
	int 		utime,stime,cutime,cstime,start_time;
	int 		exit_code;
	unsigned int	context_start,context_end;
	int 		pid;
	int 		father;
	

	struct cpu_registers cpu_registers;
	struct task_struct* next;	
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?