summaryrefslogtreecommitdiff
path: root/src/kernel/ipc/request.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/ipc/request.h')
-rw-r--r--src/kernel/ipc/request.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/kernel/ipc/request.h b/src/kernel/ipc/request.h
new file mode 100644
index 0000000..bf90c68
--- /dev/null
+++ b/src/kernel/ipc/request.h
@@ -0,0 +1,29 @@
+#ifndef DEF_REQUEST_H
+#define DEF_REQUEST_H
+
+#include "object.h"
+
+#define A_STILLRUNNING 0
+#define A_NUMBER 1
+#define A_OBJDESCRIPTOR 2
+#define A_VOID 3
+
+struct request {
+ struct object *obj;
+ struct thread *requester;
+ uint32_t func, param1, param2, param3;
+ struct seg_map *shm_cli, *shm_srv;
+ int answerType;
+ union {
+ int num;
+ struct object* obj;
+ } answer;
+};
+
+struct user_request {
+ uint32_t func, param1, param2, param3;
+ int hasShm;
+};
+
+#endif
+