uipc_sockbuf.c (111227) | uipc_sockbuf.c (114293) |
---|---|
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 111227 2003-02-21 22:23:40Z peter $ | 34 * $FreeBSD: head/sys/kern/uipc_sockbuf.c 114293 2003-04-30 12:57:40Z markm $ |
35 */ 36 37#include "opt_mac.h" 38#include "opt_param.h" 39 40#include <sys/param.h> 41#include <sys/aio.h> /* for aio_swake proto */ 42#include <sys/domain.h> --- 19 unchanged lines hidden (view full) --- 62 63void (*aio_swake)(struct socket *, struct sockbuf *); 64 65/* 66 * Primitive routines for operating on sockets and socket buffers 67 */ 68 69u_long sb_max = SB_MAX; | 35 */ 36 37#include "opt_mac.h" 38#include "opt_param.h" 39 40#include <sys/param.h> 41#include <sys/aio.h> /* for aio_swake proto */ 42#include <sys/domain.h> --- 19 unchanged lines hidden (view full) --- 62 63void (*aio_swake)(struct socket *, struct sockbuf *); 64 65/* 66 * Primitive routines for operating on sockets and socket buffers 67 */ 68 69u_long sb_max = SB_MAX; |
70u_long sb_max_adj = | 70static u_long sb_max_adj = |
71 SB_MAX * MCLBYTES / (MSIZE + MCLBYTES); /* adjusted sb_max */ 72 73static u_long sb_efficiency = 8; /* parameter for sbreserve() */ 74 75/* 76 * Procedures to manipulate state flags of socket 77 * and do appropriate wakeups. Normal sequence from the 78 * active (originating) side is that soisconnecting() is --- 929 unchanged lines hidden --- | 71 SB_MAX * MCLBYTES / (MSIZE + MCLBYTES); /* adjusted sb_max */ 72 73static u_long sb_efficiency = 8; /* parameter for sbreserve() */ 74 75/* 76 * Procedures to manipulate state flags of socket 77 * and do appropriate wakeups. Normal sequence from the 78 * active (originating) side is that soisconnecting() is --- 929 unchanged lines hidden --- |