uipc_usrreq.c (190888) | uipc_usrreq.c (191816) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1989, 1991, 1993 3 * The Regents of the University of California. 4 * Copyright (c) 2004-2009 Robert N. M. Watson 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 42 unchanged lines hidden (view full) --- 51 * 52 * TODO: 53 * SEQPACKET, RDM 54 * rethink name space problems 55 * need a proper out-of-band 56 */ 57 58#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986, 1989, 1991, 1993 3 * The Regents of the University of California. 4 * Copyright (c) 2004-2009 Robert N. M. Watson 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 42 unchanged lines hidden (view full) --- 51 * 52 * TODO: 53 * SEQPACKET, RDM 54 * rethink name space problems 55 * need a proper out-of-band 56 */ 57 58#include <sys/cdefs.h> |
59__FBSDID("$FreeBSD: head/sys/kern/uipc_usrreq.c 190888 2009-04-10 10:52:19Z rwatson $"); | 59__FBSDID("$FreeBSD: head/sys/kern/uipc_usrreq.c 191816 2009-05-05 10:56:12Z zec $"); |
60 61#include "opt_ddb.h" 62#include "opt_mac.h" 63 64#include <sys/param.h> 65#include <sys/domain.h> 66#include <sys/fcntl.h> 67#include <sys/malloc.h> /* XXX must be before <sys/file.h> */ --- 17 unchanged lines hidden (view full) --- 85#include <sys/stat.h> 86#include <sys/sx.h> 87#include <sys/sysctl.h> 88#include <sys/systm.h> 89#include <sys/taskqueue.h> 90#include <sys/un.h> 91#include <sys/unpcb.h> 92#include <sys/vnode.h> | 60 61#include "opt_ddb.h" 62#include "opt_mac.h" 63 64#include <sys/param.h> 65#include <sys/domain.h> 66#include <sys/fcntl.h> 67#include <sys/malloc.h> /* XXX must be before <sys/file.h> */ --- 17 unchanged lines hidden (view full) --- 85#include <sys/stat.h> 86#include <sys/sx.h> 87#include <sys/sysctl.h> 88#include <sys/systm.h> 89#include <sys/taskqueue.h> 90#include <sys/un.h> 91#include <sys/unpcb.h> 92#include <sys/vnode.h> |
93#include <sys/vimage.h> |
|
93 94#ifdef DDB 95#include <ddb/ddb.h> 96#endif 97 98#include <security/mac/mac_framework.h> 99 100#include <vm/uma.h> --- 1541 unchanged lines hidden (view full) --- 1642 1643 uma_zone_set_max(unp_zone, maxsockets); 1644} 1645 1646static void 1647unp_init(void) 1648{ 1649 | 94 95#ifdef DDB 96#include <ddb/ddb.h> 97#endif 98 99#include <security/mac/mac_framework.h> 100 101#include <vm/uma.h> --- 1541 unchanged lines hidden (view full) --- 1643 1644 uma_zone_set_max(unp_zone, maxsockets); 1645} 1646 1647static void 1648unp_init(void) 1649{ 1650 |
1651#ifdef VIMAGE 1652 if (!IS_DEFAULT_VNET(curvnet)) 1653 return; 1654#endif |
|
1650 unp_zone = uma_zcreate("unpcb", sizeof(struct unpcb), NULL, NULL, 1651 NULL, NULL, UMA_ALIGN_PTR, 0); 1652 if (unp_zone == NULL) 1653 panic("unp_init"); 1654 uma_zone_set_max(unp_zone, maxsockets); 1655 EVENTHANDLER_REGISTER(maxsockets_change, unp_zone_change, 1656 NULL, EVENTHANDLER_PRI_ANY); 1657 LIST_INIT(&unp_dhead); --- 561 unchanged lines hidden --- | 1655 unp_zone = uma_zcreate("unpcb", sizeof(struct unpcb), NULL, NULL, 1656 NULL, NULL, UMA_ALIGN_PTR, 0); 1657 if (unp_zone == NULL) 1658 panic("unp_init"); 1659 uma_zone_set_max(unp_zone, maxsockets); 1660 EVENTHANDLER_REGISTER(maxsockets_change, unp_zone_change, 1661 NULL, EVENTHANDLER_PRI_ANY); 1662 LIST_INIT(&unp_dhead); --- 561 unchanged lines hidden --- |