Deleted Added
full compact
utopia.c (129879) utopia.c (132199)
1/*
2 * Copyright (c) 2003
3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * Author: Hartmut Brandt <harti@freebsd.org>
28 */
29
30#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2003
3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * Author: Hartmut Brandt <harti@freebsd.org>
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/dev/utopia/utopia.c 129879 2004-05-30 20:08:47Z phk $");
31__FBSDID("$FreeBSD: head/sys/dev/utopia/utopia.c 132199 2004-07-15 08:26:07Z phk $");
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/unistd.h>
36#include <sys/kernel.h>
37#include <sys/kthread.h>
38#include <sys/proc.h>
39#include <sys/bus.h>

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

1545 PROC_LOCK(kp);
1546 UTP_WUNLOCK_LIST();
1547 msleep(kp, &kp->p_mtx, PWAIT, "utopia_destroy", 0);
1548 PROC_UNLOCK(kp);
1549 } else
1550 UTP_WUNLOCK_LIST();
1551 mtx_destroy(&utopia_list_mtx);
1552 break;
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/unistd.h>
36#include <sys/kernel.h>
37#include <sys/kthread.h>
38#include <sys/proc.h>
39#include <sys/bus.h>

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

1545 PROC_LOCK(kp);
1546 UTP_WUNLOCK_LIST();
1547 msleep(kp, &kp->p_mtx, PWAIT, "utopia_destroy", 0);
1548 PROC_UNLOCK(kp);
1549 } else
1550 UTP_WUNLOCK_LIST();
1551 mtx_destroy(&utopia_list_mtx);
1552 break;
1553 default:
1554 return (EOPNOTSUPP);
1553 }
1554 return (0);
1555}
1556
1557static moduledata_t utopia_mod = {
1558 "utopia",
1559 utopia_mod_init,
1560 0
1561};
1562
1563DECLARE_MODULE(utopia, utopia_mod, SI_SUB_INIT_IF, SI_ORDER_ANY);
1564MODULE_VERSION(utopia, 1);
1555 }
1556 return (0);
1557}
1558
1559static moduledata_t utopia_mod = {
1560 "utopia",
1561 utopia_mod_init,
1562 0
1563};
1564
1565DECLARE_MODULE(utopia, utopia_mod, SI_SUB_INIT_IF, SI_ORDER_ANY);
1566MODULE_VERSION(utopia, 1);