summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_usrreq.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1997-02-24 20:30:58 +0000
committerwollman <wollman@FreeBSD.org>1997-02-24 20:30:58 +0000
commita6e3c2a3ced8d886e252170fd0fbc11aedf9a3e2 (patch)
tree7f9fda9e13141358225b618de039c262a753beaf /sys/kern/uipc_usrreq.c
parent139936b34a895520e9ee8b9a6d3f774754cdcc48 (diff)
downloadFreeBSD-src-a6e3c2a3ced8d886e252170fd0fbc11aedf9a3e2.zip
FreeBSD-src-a6e3c2a3ced8d886e252170fd0fbc11aedf9a3e2.tar.gz
Create a new branch of the kernel MIB, kern.ipc, to store
all of the configurables and instrumentation related to inter-process communication mechanisms. Some variables, like mbuf statistics, are instrumented here for the first time. For mbuf statistics: also keep track of m_copym() and m_pullup() failures, and provide for the user's inspection the compiled-in values of MSIZE, MHLEN, MCLBYTES, and MINCLSIZE.
Diffstat (limited to 'sys/kern/uipc_usrreq.c')
-rw-r--r--sys/kern/uipc_usrreq.c29
1 files changed, 20 insertions, 9 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index 91d8c50..3b668a2 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -31,26 +31,27 @@
* SUCH DAMAGE.
*
* From: @(#)uipc_usrreq.c 8.3 (Berkeley) 1/4/94
- * $Id$
+ * $Id: uipc_usrreq.c,v 1.19 1997/02/22 09:39:29 peter Exp $
*/
#include <sys/param.h>
#include <sys/queue.h>
#include <sys/systm.h>
-#include <sys/proc.h>
-#include <sys/filedesc.h>
+#include <sys/kernel.h>
#include <sys/domain.h>
+#include <sys/file.h>
+#include <sys/filedesc.h>
+#include <sys/mbuf.h>
+#include <sys/namei.h>
+#include <sys/proc.h>
#include <sys/protosw.h>
-#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
-#include <sys/unpcb.h>
+#include <sys/stat.h>
+#include <sys/sysctl.h>
#include <sys/un.h>
-#include <sys/namei.h>
+#include <sys/unpcb.h>
#include <sys/vnode.h>
-#include <sys/file.h>
-#include <sys/stat.h>
-#include <sys/mbuf.h>
/*
* Unix communications domain.
@@ -358,6 +359,16 @@ static u_long unpdg_recvspace = 4*1024;
static int unp_rights; /* file descriptors in flight */
+SYSCTL_INT(_net_local_stream, OID_AUTO, sendspace, CTLFLAG_RW,
+ &unpst_sendspace, 0, "");
+SYSCTL_INT(_net_local_stream, OID_AUTO, recvspace, CTLFLAG_RW,
+ &unpst_recvspace, 0, "");
+SYSCTL_INT(_net_local_dgram, OID_AUTO, maxdgram, CTLFLAG_RW,
+ &unpdg_sendspace, 0, "");
+SYSCTL_INT(_net_local_dgram, OID_AUTO, recvspace, CTLFLAG_RW,
+ &unpdg_recvspace, 0, "");
+SYSCTL_INT(_net_local, OID_AUTO, inflight, CTLFLAG_RD, &unp_rights, 0, "");
+
static int
unp_attach(so)
struct socket *so;
OpenPOWER on IntegriCloud