uipc_sockbuf.c (88329) | uipc_sockbuf.c (88633) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1988, 1990, 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)uipc_socket2.c 8.1 (Berkeley) 6/10/93 | 1/* 2 * Copyright (c) 1982, 1986, 1988, 1990, 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)uipc_socket2.c 8.1 (Berkeley) 6/10/93 |
34 * $FreeBSD: head/sys/kern/uipc_sockbuf.c 88329 2001-12-21 04:30:49Z peter $ | 34 * $FreeBSD: head/sys/kern/uipc_sockbuf.c 88633 2001-12-29 07:13:47Z alfred $ |
35 */ 36 37#include "opt_param.h" 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/domain.h> 41#include <sys/file.h> /* for maxfiles */ 42#include <sys/kernel.h> --- 9 unchanged lines hidden (view full) --- 52#include <sys/socketvar.h> 53#include <sys/signalvar.h> 54#include <sys/sysctl.h> 55#include <sys/aio.h> /* for aio_swake proto */ 56#include <sys/event.h> 57 58int maxsockets; 59 | 35 */ 36 37#include "opt_param.h" 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/domain.h> 41#include <sys/file.h> /* for maxfiles */ 42#include <sys/kernel.h> --- 9 unchanged lines hidden (view full) --- 52#include <sys/socketvar.h> 53#include <sys/signalvar.h> 54#include <sys/sysctl.h> 55#include <sys/aio.h> /* for aio_swake proto */ 56#include <sys/event.h> 57 58int maxsockets; 59 |
60void (*aio_swake)(struct socket *, struct sockbuf *); 61 |
|
60/* 61 * Primitive routines for operating on sockets and socket buffers 62 */ 63 64u_long sb_max = SB_MAX; /* XXX should be static */ 65 66static u_long sb_efficiency = 8; /* parameter for sbreserve() */ 67 --- 954 unchanged lines hidden --- | 62/* 63 * Primitive routines for operating on sockets and socket buffers 64 */ 65 66u_long sb_max = SB_MAX; /* XXX should be static */ 67 68static u_long sb_efficiency = 8; /* parameter for sbreserve() */ 69 --- 954 unchanged lines hidden --- |