g_gate.c (162149) | g_gate.c (201145) |
---|---|
1/*- 2 * Copyright (c) 2004-2006 Pawel Jakub Dawidek <pjd@FreeBSD.org> 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) 2004-2006 Pawel Jakub Dawidek <pjd@FreeBSD.org> 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/geom/gate/g_gate.c 162149 2006-09-08 10:20:44Z pjd $"); | 28__FBSDID("$FreeBSD: head/sys/geom/gate/g_gate.c 201145 2009-12-28 22:56:30Z antoine $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bio.h> 33#include <sys/conf.h> 34#include <sys/kernel.h> 35#include <sys/kthread.h> 36#include <sys/fcntl.h> --- 30 unchanged lines hidden (view full) --- 67static struct cdevsw g_gate_cdevsw = { 68 .d_version = D_VERSION, 69 .d_ioctl = g_gate_ioctl, 70 .d_name = G_GATE_CTL_NAME 71}; 72 73 74static LIST_HEAD(, g_gate_softc) g_gate_list = | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bio.h> 33#include <sys/conf.h> 34#include <sys/kernel.h> 35#include <sys/kthread.h> 36#include <sys/fcntl.h> --- 30 unchanged lines hidden (view full) --- 67static struct cdevsw g_gate_cdevsw = { 68 .d_version = D_VERSION, 69 .d_ioctl = g_gate_ioctl, 70 .d_name = G_GATE_CTL_NAME 71}; 72 73 74static LIST_HEAD(, g_gate_softc) g_gate_list = |
75 LIST_HEAD_INITIALIZER(&g_gate_list); | 75 LIST_HEAD_INITIALIZER(g_gate_list); |
76static struct mtx g_gate_list_mtx; 77 78 79static int 80g_gate_destroy(struct g_gate_softc *sc, boolean_t force) 81{ 82 struct g_provider *pp; 83 struct g_geom *gp; --- 579 unchanged lines hidden --- | 76static struct mtx g_gate_list_mtx; 77 78 79static int 80g_gate_destroy(struct g_gate_softc *sc, boolean_t force) 81{ 82 struct g_provider *pp; 83 struct g_geom *gp; --- 579 unchanged lines hidden --- |