summaryrefslogtreecommitdiffstats
path: root/sys/kern/sched_4bsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/sched_4bsd.c')
-rw-r--r--sys/kern/sched_4bsd.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
index c57262f..236a3c7 100644
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -51,6 +51,10 @@
#include <sys/sysctl.h>
#include <sys/sx.h>
+struct ke_sched *kse0_sched = NULL;
+struct kg_sched *ksegrp0_sched = NULL;
+struct p_sched *proc0_sched = NULL;
+struct td_sched *thread0_sched = NULL;
static int sched_quantum; /* Roundrobin scheduling quantum in ticks. */
#define SCHED_QUANTUM (hz / 10); /* Default sched quantum */
@@ -618,3 +622,24 @@ sched_userret(struct thread *td)
mtx_unlock_spin(&sched_lock);
}
}
+
+int
+sched_sizeof_kse(void)
+{
+ return (sizeof(struct kse));
+}
+int
+sched_sizeof_ksegrp(void)
+{
+ return (sizeof(struct ksegrp));
+}
+int
+sched_sizeof_proc(void)
+{
+ return (sizeof(struct proc));
+}
+int
+sched_sizeof_thread(void)
+{
+ return (sizeof(struct thread));
+}
OpenPOWER on IntegriCloud