uipc_domain.c (196501) | uipc_domain.c (232051) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1993 3 * The Regents of the University of California. 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 --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)uipc_domain.c 8.2 (Berkeley) 10/18/93 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986, 1993 3 * The Regents of the University of California. 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 --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)uipc_domain.c 8.2 (Berkeley) 10/18/93 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/kern/uipc_domain.c 196501 2009-08-24 10:03:41Z zec $"); | 33__FBSDID("$FreeBSD: head/sys/kern/uipc_domain.c 232051 2012-02-23 17:47:19Z brueffer $"); |
34 35#include <sys/param.h> 36#include <sys/socket.h> 37#include <sys/protosw.h> 38#include <sys/domain.h> 39#include <sys/eventhandler.h> 40#include <sys/mbuf.h> 41#include <sys/kernel.h> --- 173 unchanged lines hidden (view full) --- 215 struct domain *dp; 216 217 dp = (struct domain *)data; 218 mtx_lock(&dom_mtx); 219 dp->dom_next = domains; 220 domains = dp; 221 222 KASSERT(domain_init_status >= 1, | 34 35#include <sys/param.h> 36#include <sys/socket.h> 37#include <sys/protosw.h> 38#include <sys/domain.h> 39#include <sys/eventhandler.h> 40#include <sys/mbuf.h> 41#include <sys/kernel.h> --- 173 unchanged lines hidden (view full) --- 215 struct domain *dp; 216 217 dp = (struct domain *)data; 218 mtx_lock(&dom_mtx); 219 dp->dom_next = domains; 220 domains = dp; 221 222 KASSERT(domain_init_status >= 1, |
223 ("attempt to net_add_domain(%s) before domaininit()", | 223 ("attempt to domain_add(%s) before domaininit()", |
224 dp->dom_name)); 225#ifndef INVARIANTS 226 if (domain_init_status < 1) 227 printf("WARNING: attempt to domain_add(%s) before " 228 "domaininit()\n", dp->dom_name); 229#endif 230#ifdef notyet 231 KASSERT(domain_init_status < 2, --- 302 unchanged lines hidden --- | 224 dp->dom_name)); 225#ifndef INVARIANTS 226 if (domain_init_status < 1) 227 printf("WARNING: attempt to domain_add(%s) before " 228 "domaininit()\n", dp->dom_name); 229#endif 230#ifdef notyet 231 KASSERT(domain_init_status < 2, --- 302 unchanged lines hidden --- |