Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpkern Provide some sort of cv_is_valid()...



details:   https://anonhg.NetBSD.org/src/rev/b98fb4a264f3
branches:  trunk
changeset: 749329:b98fb4a264f3
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Nov 26 17:29:34 2009 +0000

description:
Provide some sort of cv_is_valid().  What a silly routine.

diffstat:

 sys/rump/librump/rumpkern/locks.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 11d932fee712 -r b98fb4a264f3 sys/rump/librump/rumpkern/locks.c
--- a/sys/rump/librump/rumpkern/locks.c Thu Nov 26 17:24:52 2009 +0000
+++ b/sys/rump/librump/rumpkern/locks.c Thu Nov 26 17:29:34 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locks.c,v 1.34 2009/11/11 16:46:50 pooka Exp $ */
+/*     $NetBSD: locks.c,v 1.35 2009/11/26 17:29:34 pooka Exp $ */
 
 /*
  * Copyright (c) 2007, 2008 Antti Kantee.  All Rights Reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: locks.c,v 1.34 2009/11/11 16:46:50 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locks.c,v 1.35 2009/11/26 17:29:34 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/kmem.h>
@@ -272,6 +272,14 @@
        return rumpuser_cv_has_waiters(RUMPCV(cv));
 }
 
+/* this is not much of an attempt, but ... */
+bool
+cv_is_valid(kcondvar_t *cv)
+{
+
+       return RUMPCV(cv) != NULL;
+}
+
 /*
  * giant lock
  */



Home | Main Index | Thread Index | Old Index