Deleted Added
full compact
kern_conf.c (181905) kern_conf.c (183381)
1/*-
2 * Copyright (c) 1999-2002 Poul-Henning Kamp
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) 1999-2002 Poul-Henning Kamp
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/kern_conf.c 181905 2008-08-20 08:31:58Z ed $");
28__FBSDID("$FreeBSD: head/sys/kern/kern_conf.c 183381 2008-09-26 14:19:52Z ed $");
29
30#include <sys/param.h>
31#include <sys/kernel.h>
32#include <sys/systm.h>
33#include <sys/bus.h>
34#include <sys/bio.h>
35#include <sys/lock.h>
36#include <sys/mutex.h>

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

1012 continue;
1013 } else if (u > (unit | extra)) {
1014 dl = dev;
1015 break;
1016 }
1017 }
1018 if (unit == -1)
1019 unit = low & CLONE_UNITMASK;
29
30#include <sys/param.h>
31#include <sys/kernel.h>
32#include <sys/systm.h>
33#include <sys/bus.h>
34#include <sys/bio.h>
35#include <sys/lock.h>
36#include <sys/mutex.h>

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

1012 continue;
1013 } else if (u > (unit | extra)) {
1014 dl = dev;
1015 break;
1016 }
1017 }
1018 if (unit == -1)
1019 unit = low & CLONE_UNITMASK;
1020 dev = newdev(csw, unit2minor(unit | extra), ndev);
1020 dev = newdev(csw, unit | extra, ndev);
1021 if (dev->si_flags & SI_CLONELIST) {
1022 printf("dev %p (%s) is on clonelist\n", dev, dev->si_name);
1023 printf("unit=%d, low=%d, extra=0x%x\n", unit, low, extra);
1024 LIST_FOREACH(dev, &cd->head, si_clone) {
1025 printf("\t%p %s\n", dev, dev->si_name);
1026 }
1027 panic("foo");
1028 }

--- 144 unchanged lines hidden ---
1021 if (dev->si_flags & SI_CLONELIST) {
1022 printf("dev %p (%s) is on clonelist\n", dev, dev->si_name);
1023 printf("unit=%d, low=%d, extra=0x%x\n", unit, low, extra);
1024 LIST_FOREACH(dev, &cd->head, si_clone) {
1025 printf("\t%p %s\n", dev, dev->si_name);
1026 }
1027 panic("foo");
1028 }

--- 144 unchanged lines hidden ---