diff kernel/process.c3 @ 292:534b94b40aa8

Fixup reorganize
author Windel Bouwman
date Wed, 27 Nov 2013 08:06:42 +0100
parents c9781c73e7e2
children 917eab04b8b7
line wrap: on
line diff
--- a/kernel/process.c3	Sun Nov 24 11:24:15 2013 +0100
+++ b/kernel/process.c3	Wed Nov 27 08:06:42 2013 +0100
@@ -5,8 +5,12 @@
 // process type definition:
 typedef struct {
     int id;
+    int status;
 } process_t;
 
+// Or, use this list structure:
+List<process_t> procs;
+
 // init is the root of all processes:
 var process_t* init = 0;
 var int next_pid = 0;
@@ -34,4 +38,10 @@
     // clean memory
 }
 
+public process_t* byId(int id)
+{
+    // Perform lookup
+    return 0;
+}
 
+