kern_conf.c (bc093719ca478fe10b938cef32c30b528042cbcd) kern_conf.c (d3ce8327194c0bcf742f2e03b5b0dc8f8cfe7f6b)
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

--- 1003 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;
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

--- 1003 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 ---