Module Name: src Committed By: pooka Date: Thu Nov 26 17:29:34 UTC 2009
Modified Files: src/sys/rump/librump/rumpkern: locks.c Log Message: Provide some sort of cv_is_valid(). What a silly routine. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sys/rump/librump/rumpkern/locks.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/rump/librump/rumpkern/locks.c diff -u src/sys/rump/librump/rumpkern/locks.c:1.34 src/sys/rump/librump/rumpkern/locks.c:1.35 --- src/sys/rump/librump/rumpkern/locks.c:1.34 Wed Nov 11 16:46:50 2009 +++ src/sys/rump/librump/rumpkern/locks.c Thu Nov 26 17:29:34 2009 @@ -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 */