summaryrefslogtreecommitdiff
path: root/sys/kern/sched_4bsd.c
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2002-11-21 01:22:38 +0000
committerJeff Roberson <jeff@FreeBSD.org>2002-11-21 01:22:38 +0000
commitde028f5a4a67b635ea3e45799be822c8daa1ff20 (patch)
treeffffe185be0dc78e5e3c311d7fcb3156b1524543 /sys/kern/sched_4bsd.c
parent075c3f0781b32e7b28c5cd4bca725b0eba7a1836 (diff)
Notes
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 c57262f2ca32..236a3c7f118b 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));
+}