Deleted Added
sdiff udiff text old ( 157370 ) new ( 157927 )
full compact
1/*-
2 * Copyright (c) 1982, 1986, 1989, 1991, 1993
3 * The Regents of the University of California.
4 * Copyright 2004-2006 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

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

27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * From: @(#)uipc_usrreq.c 8.3 (Berkeley) 1/4/94
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/kern/uipc_usrreq.c 157370 2006-04-01 15:42:02Z rwatson $");
36
37#include "opt_mac.h"
38
39#include <sys/param.h>
40#include <sys/domain.h>
41#include <sys/fcntl.h>
42#include <sys/malloc.h> /* XXX must be before <sys/file.h> */
43#include <sys/file.h>
44#include <sys/filedesc.h>
45#include <sys/jail.h>
46#include <sys/kernel.h>
47#include <sys/lock.h>
48#include <sys/mac.h>
49#include <sys/mbuf.h>
50#include <sys/mount.h>

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

1320 }
1321 }
1322
1323 m_freem(control);
1324
1325 return (error);
1326}
1327
1328void
1329unp_init(void)
1330{
1331 unp_zone = uma_zcreate("unpcb", sizeof(struct unpcb), NULL, NULL,
1332 NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
1333 if (unp_zone == NULL)
1334 panic("unp_init");
1335 uma_zone_set_max(unp_zone, nmbclusters);
1336 LIST_INIT(&unp_dhead);
1337 LIST_INIT(&unp_shead);
1338 TASK_INIT(&unp_gc_task, 0, unp_gc, NULL);
1339 UNP_LOCK_INIT();
1340}
1341
1342static int
1343unp_internalize(struct mbuf **controlp, struct thread *td)

--- 483 unchanged lines hidden ---