libsq.h

Go to the documentation of this file.
00001 /*
00002 ** libsq.h for  in /root/work/lseos/lseos-core/sq
00003 ** 
00004 ** Made by Vianney Rancurel
00005 ** Login   <vianney@epita.fr>
00006 ** 
00007 ** Started on  Wed Oct  6 16:21:30 2004 JP Billaud
00008 ** Last update Mon Dec  6 12:24:44 2004 Vianney Rancurel
00009 */
00010 #ifndef __LIBSQ_H__
00011 #define __LIBSQ_H__
00012 #include <libc.h>
00013 
00014 /*
00015 ** Protocol for req thread communication 
00016 */
00017 
00018 #define SYSSQ_REQ       0
00019 
00020 int     sq_syscall(int gate_nb, int arg1, int arg2, 
00021                    int arg3, int arg4, int arg5, 
00022                    int arg6);
00023 
00024 /*
00025 ** Protocol for reg thread communication 
00026 */
00027 
00028 #define SYSSQ_REG       0
00029 #define SYSSQ_UREG      1
00030 #define SYSSQ_NEXT      2
00031 
00032 int     sq_reg (paddr_t pshare,
00033                 u_int           gate);
00034 int     sq_unreg ();
00035 
00036 #define NON_BLK 0
00037 #define BLK     1
00038 
00039 int     sq_next (int    flags);
00040 
00041 int     sq_gate(int     gate_id);
00042 
00043 #endif

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