task.h

Go to the documentation of this file.
00001 /*
00002 ** task.h for  in /root/work/lseosr2a/libkern
00003 ** 
00004 ** Copyright (c)2004 Vianney Rancurel
00005 ** Login   <vianney@epita.fr>
00006 ** 
00007 ** Started on  Fri Mar 19 14:01:38 2004 Vianney Rancurel
00008 ** Last update Mon Dec  6 12:29:24 2004 Vianney Rancurel
00009 */
00010 #ifndef __CONVEN_TASK_H__
00011 #define __CONVEN_TASK_H__       1
00012 #include <libc.h>
00013 
00014 /*
00015  * task status is a combination of multiple status codes
00016  */
00017 typedef enum
00018   {
00019     TASK_EZERO = 0,
00020 
00021     TASK_ASCREATE_FAILED = 1000,
00022 
00023     TASK_LOAD_FAILED = 2000,
00024 
00025     TASK_THREAD_FAILED = 3000,
00026 
00027   } t_task_status;
00028 
00029 /* PROTO task.c */
00030 /* task.c */
00031 t_task_status task_create(char *name, char *filename, vaddr_t mapaddr, u_int32_t eip, int nbstkpgs, int for_cpu, u_int sel, u_int32_t ascreateopts, u_int32_t loadopts, u_int32_t threadopts, char *parambuf, int paramlen, struct s_tcb_export *tcb);
00032 #endif

Generated on Wed May 24 23:04:17 2006 for LSE/OS by  doxygen 1.4.6