Mon Apr 12 23:09:28 2010 UTC ()
void police!


(christos)
diff -r1.1 -r1.2 src/sys/kern/subr_lwp_specificdata.c

cvs diff -r1.1 -r1.2 src/sys/kern/subr_lwp_specificdata.c (expand / switch to unified diff)

--- src/sys/kern/subr_lwp_specificdata.c 2010/04/12 22:15:31 1.1
+++ src/sys/kern/subr_lwp_specificdata.c 2010/04/12 23:09:28 1.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: subr_lwp_specificdata.c,v 1.1 2010/04/12 22:15:31 pooka Exp $ */ 1/* $NetBSD: subr_lwp_specificdata.c,v 1.2 2010/04/12 23:09:28 christos Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2006 The NetBSD Foundation, Inc. 4 * Copyright (c) 2006 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -19,36 +19,36 @@ @@ -19,36 +19,36 @@
19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 * POSSIBILITY OF SUCH DAMAGE. 26 * POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29#define _LWP_API_PRIVATE 29#define _LWP_API_PRIVATE
30 30
31#include <sys/cdefs.h> 31#include <sys/cdefs.h>
32__KERNEL_RCSID(0, "$NetBSD: subr_lwp_specificdata.c,v 1.1 2010/04/12 22:15:31 pooka Exp $"); 32__KERNEL_RCSID(0, "$NetBSD: subr_lwp_specificdata.c,v 1.2 2010/04/12 23:09:28 christos Exp $");
33 33
34#include <sys/param.h> 34#include <sys/param.h>
35#include <sys/lwp.h> 35#include <sys/lwp.h>
36#include <sys/specificdata.h> 36#include <sys/specificdata.h>
37 37
38static specificdata_domain_t lwp_specificdata_domain; 38static specificdata_domain_t lwp_specificdata_domain;
39 39
40void 40void
41lwpinit_specificdata() 41lwpinit_specificdata(void)
42{ 42{
43 43
44 lwp_specificdata_domain = specificdata_domain_create(); 44 lwp_specificdata_domain = specificdata_domain_create();
45 KASSERT(lwp_specificdata_domain != NULL); 45 KASSERT(lwp_specificdata_domain != NULL);
46} 46}
47 47
48/* 48/*
49 * lwp_specific_key_create -- 49 * lwp_specific_key_create --
50 * Create a key for subsystem lwp-specific data. 50 * Create a key for subsystem lwp-specific data.
51 */ 51 */
52int 52int
53lwp_specific_key_create(specificdata_key_t *keyp, specificdata_dtor_t dtor) 53lwp_specific_key_create(specificdata_key_t *keyp, specificdata_dtor_t dtor)
54{ 54{