Deleted Added
full compact
subr_kobj.c (217326) subr_kobj.c (227343)
1/*-
2 * Copyright (c) 2000,2003 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2000,2003 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/kern/subr_kobj.c 217326 2011-01-12 19:54:19Z mdf $");
28__FBSDID("$FreeBSD: head/sys/kern/subr_kobj.c 227343 2011-11-08 15:38:21Z ed $");
29
30#include <sys/param.h>
31#include <sys/kernel.h>
32#include <sys/kobj.h>
33#include <sys/lock.h>
34#include <sys/malloc.h>
35#include <sys/mutex.h>
36#include <sys/sysctl.h>

--- 50 unchanged lines hidden (view full) ---

87
88SYSINIT(kobj, SI_SUB_LOCK, SI_ORDER_ANY, kobj_init_mutex, NULL);
89
90/*
91 * This method structure is used to initialise new caches. Since the
92 * desc pointer is NULL, it is guaranteed never to match any read
93 * descriptors.
94 */
29
30#include <sys/param.h>
31#include <sys/kernel.h>
32#include <sys/kobj.h>
33#include <sys/lock.h>
34#include <sys/malloc.h>
35#include <sys/mutex.h>
36#include <sys/sysctl.h>

--- 50 unchanged lines hidden (view full) ---

87
88SYSINIT(kobj, SI_SUB_LOCK, SI_ORDER_ANY, kobj_init_mutex, NULL);
89
90/*
91 * This method structure is used to initialise new caches. Since the
92 * desc pointer is NULL, it is guaranteed never to match any read
93 * descriptors.
94 */
95static struct kobj_method null_method = {
95static const struct kobj_method null_method = {
96 0, 0,
97};
98
99int
100kobj_error_method(void)
101{
102
103 return ENXIO;

--- 258 unchanged lines hidden ---
96 0, 0,
97};
98
99int
100kobj_error_method(void)
101{
102
103 return ENXIO;

--- 258 unchanged lines hidden ---