kern_conf.c (163529) | kern_conf.c (166438) |
---|---|
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 163529 2006-10-20 07:59:50Z kib $"); | 28__FBSDID("$FreeBSD: head/sys/kern/kern_conf.c 166438 2007-02-02 22:27:45Z bms $"); |
29 30#include <sys/param.h> 31#include <sys/kernel.h> 32#include <sys/systm.h> 33#include <sys/bio.h> 34#include <sys/lock.h> 35#include <sys/mutex.h> 36#include <sys/module.h> --- 761 unchanged lines hidden (view full) --- 798clone_setup(struct clonedevs **cdp) 799{ 800 801 *cdp = malloc(sizeof **cdp, M_DEVBUF, M_WAITOK | M_ZERO); 802 LIST_INIT(&(*cdp)->head); 803} 804 805int | 29 30#include <sys/param.h> 31#include <sys/kernel.h> 32#include <sys/systm.h> 33#include <sys/bio.h> 34#include <sys/lock.h> 35#include <sys/mutex.h> 36#include <sys/module.h> --- 761 unchanged lines hidden (view full) --- 798clone_setup(struct clonedevs **cdp) 799{ 800 801 *cdp = malloc(sizeof **cdp, M_DEVBUF, M_WAITOK | M_ZERO); 802 LIST_INIT(&(*cdp)->head); 803} 804 805int |
806clone_create(struct clonedevs **cdp, struct cdevsw *csw, int *up, struct cdev **dp, u_int extra) | 806clone_create(struct clonedevs **cdp, struct cdevsw *csw, int *up, struct cdev **dp, int extra) |
807{ 808 struct clonedevs *cd; 809 struct cdev *dev, *ndev, *dl, *de; 810 int unit, low, u; 811 812 KASSERT(*cdp != NULL, 813 ("clone_setup() not called in driver \"%s\"", csw->d_name)); 814 KASSERT(!(extra & CLONE_UNITMASK), --- 93 unchanged lines hidden --- | 807{ 808 struct clonedevs *cd; 809 struct cdev *dev, *ndev, *dl, *de; 810 int unit, low, u; 811 812 KASSERT(*cdp != NULL, 813 ("clone_setup() not called in driver \"%s\"", csw->d_name)); 814 KASSERT(!(extra & CLONE_UNITMASK), --- 93 unchanged lines hidden --- |