Deleted Added
full compact
uipc_usrreq.c (210225) uipc_usrreq.c (210226)
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

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

52 * TODO:
53 * RDM
54 * distinguish datagram size limits from flow control limits in SEQPACKET
55 * rethink name space problems
56 * need a proper out-of-band
57 */
58
59#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

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

52 * TODO:
53 * RDM
54 * distinguish datagram size limits from flow control limits in SEQPACKET
55 * rethink name space problems
56 * need a proper out-of-band
57 */
58
59#include <sys/cdefs.h>
60__FBSDID("$FreeBSD: head/sys/kern/uipc_usrreq.c 210225 2010-07-18 20:23:10Z trasz $");
60__FBSDID("$FreeBSD: head/sys/kern/uipc_usrreq.c 210226 2010-07-18 20:57:53Z trasz $");
61
62#include "opt_ddb.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> */
68#include <sys/eventhandler.h>

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

160 &unpdg_recvspace, 0, "Default datagram receive space.");
161SYSCTL_ULONG(_net_local_seqpacket, OID_AUTO, maxseqpacket, CTLFLAG_RW,
162 &unpsp_sendspace, 0, "Default seqpacket send space.");
163SYSCTL_ULONG(_net_local_seqpacket, OID_AUTO, recvspace, CTLFLAG_RW,
164 &unpsp_recvspace, 0, "Default seqpacket receive space.");
165SYSCTL_INT(_net_local, OID_AUTO, inflight, CTLFLAG_RD, &unp_rights, 0,
166 "File descriptors in flight.");
167
61
62#include "opt_ddb.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> */
68#include <sys/eventhandler.h>

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

160 &unpdg_recvspace, 0, "Default datagram receive space.");
161SYSCTL_ULONG(_net_local_seqpacket, OID_AUTO, maxseqpacket, CTLFLAG_RW,
162 &unpsp_sendspace, 0, "Default seqpacket send space.");
163SYSCTL_ULONG(_net_local_seqpacket, OID_AUTO, recvspace, CTLFLAG_RW,
164 &unpsp_recvspace, 0, "Default seqpacket receive space.");
165SYSCTL_INT(_net_local, OID_AUTO, inflight, CTLFLAG_RD, &unp_rights, 0,
166 "File descriptors in flight.");
167
168/*
168/*-
169 * Locking and synchronization:
170 *
171 * Three types of locks exit in the local domain socket implementation: a
172 * global list mutex, a global linkage rwlock, and per-unpcb mutexes. Of the
173 * global locks, the list lock protects the socket count, global generation
174 * number, and stream/datagram global lists. The linkage lock protects the
175 * interconnection of unpcbs, the v_socket and unp_vnode pointers, and can be
176 * held exclusively over the acquisition of multiple unpcb locks to prevent

--- 2151 unchanged lines hidden ---
169 * Locking and synchronization:
170 *
171 * Three types of locks exit in the local domain socket implementation: a
172 * global list mutex, a global linkage rwlock, and per-unpcb mutexes. Of the
173 * global locks, the list lock protects the socket count, global generation
174 * number, and stream/datagram global lists. The linkage lock protects the
175 * interconnection of unpcbs, the v_socket and unp_vnode pointers, and can be
176 * held exclusively over the acquisition of multiple unpcb locks to prevent

--- 2151 unchanged lines hidden ---