xnu-344.tar.gz
[apple/xnu.git] / bsd / kern / sys_domain.c
index 1f6cd83af2eb2c870d41fdd31e9eb313888731e5..ab3f6284708dfc18851c54c7453750b53bd183cd 100644 (file)
 #include <sys/protosw.h>
 #include <sys/domain.h>
 #include <sys/mbuf.h>
+#include <sys/sys_domain.h>
 
 
-extern struct protosw eventsw;
+/* domain init function */
+void systemdomain_init();
+
 
 struct domain systemdomain =
-    { PF_SYSTEM, "system", 0, 0, 0,
-      &eventsw};
+    { PF_SYSTEM, "system", systemdomain_init, 0, 0, 0};
+
+
+void systemdomain_init()
+{
+    /* add system domain built in protocol initializers here */
+
+    kern_event_init();
+    kern_control_init();
+}