Module Name: src Committed By: christos Date: Sun Feb 8 19:39:09 UTC 2015
Modified Files: src/sys/sys: sleepq.h Log Message: make this kmemuser friendly. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/sys/sys/sleepq.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/sleepq.h diff -u src/sys/sys/sleepq.h:1.23 src/sys/sys/sleepq.h:1.24 --- src/sys/sys/sleepq.h:1.23 Thu Apr 24 08:04:28 2014 +++ src/sys/sys/sleepq.h Sun Feb 8 14:39:09 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: sleepq.h,v 1.23 2014/04/24 12:04:28 pooka Exp $ */ +/* $NetBSD: sleepq.h,v 1.24 2015/02/08 19:39:09 christos Exp $ */ /*- * Copyright (c) 2002, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc. @@ -61,7 +61,7 @@ typedef struct sleeptab { void sleepq_init(sleepq_t *); void sleepq_remove(sleepq_t *, lwp_t *); -void sleepq_enqueue(sleepq_t *, wchan_t, const char *, syncobj_t *); +void sleepq_enqueue(sleepq_t *, wchan_t, const char *, struct syncobj *); void sleepq_unsleep(lwp_t *, bool); void sleepq_timeout(void *); void sleepq_wake(sleepq_t *, wchan_t, u_int, kmutex_t *); @@ -74,6 +74,7 @@ void sleeptab_init(sleeptab_t *); extern sleeptab_t sleeptab; +#ifdef _KERNEL /* * Return non-zero if it is unsafe to sleep. * @@ -128,6 +129,7 @@ sleepq_enter(sleepq_t *sq, lwp_t *l, kmu lwp_unlock_to(l, mp); KERNEL_UNLOCK_ALL(NULL, &l->l_biglocks); } +#endif /* * Turnstiles, specialized sleep queues for use by kernel locks.