kern_conf.c (183406) | kern_conf.c (185373) |
---|---|
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 183406 2008-09-27 13:19:09Z ed $"); | 28__FBSDID("$FreeBSD: head/sys/kern/kern_conf.c 185373 2008-11-27 16:47:25Z kib $"); |
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> --- 820 unchanged lines hidden (view full) --- 857 dev_free_devlocked(dev); 858 } 859} 860 861void 862destroy_dev(struct cdev *dev) 863{ 864 | 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> --- 820 unchanged lines hidden (view full) --- 857 dev_free_devlocked(dev); 858 } 859} 860 861void 862destroy_dev(struct cdev *dev) 863{ 864 |
865 WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, "destroy_dev"); |
|
865 dev_lock(); 866 destroy_devl(dev); 867 dev_unlock_and_free(); 868} 869 870const char * 871devtoname(struct cdev *dev) 872{ --- 286 unchanged lines hidden --- | 866 dev_lock(); 867 destroy_devl(dev); 868 dev_unlock_and_free(); 869} 870 871const char * 872devtoname(struct cdev *dev) 873{ --- 286 unchanged lines hidden --- |