summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorrmh <rmh@FreeBSD.org>2012-03-17 21:51:39 +0000
committerrmh <rmh@FreeBSD.org>2012-03-17 21:51:39 +0000
commit26b44e3c9dec81c45a5cd5e5386ca5b6c9a06953 (patch)
treeb3090724f09012964a6eb42e2bbb82a69dd83bc9 /sys/netinet
parente1da8f7c606cd0b1a8fe8d813288c624ddd42ca3 (diff)
downloadFreeBSD-src-26b44e3c9dec81c45a5cd5e5386ca5b6c9a06953.zip
FreeBSD-src-26b44e3c9dec81c45a5cd5e5386ca5b6c9a06953.tar.gz
Hide a few declarations from userland (including `struct inpcbgroup'). This
removes the dependency on <machine/param.h> which was introduced with SVN rev 222748 (due to CACHE_LINE_SIZE). Reviewed by: bde MFC after: 10 days
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/in_pcb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index e10f0b6..c17213b 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -364,6 +364,7 @@ struct inpcbinfo {
void *ipi_pspare[2];
};
+#ifdef _KERNEL
/*
* Connection groups hold sets of connections that have similar CPU/thread
* affinity. Each connection belongs to exactly one connection group.
@@ -406,7 +407,6 @@ struct inpcbgroup {
#define INP_WLOCK_ASSERT(inp) rw_assert(&(inp)->inp_lock, RA_WLOCKED)
#define INP_UNLOCK_ASSERT(inp) rw_assert(&(inp)->inp_lock, RA_UNLOCKED)
-#ifdef _KERNEL
/*
* These locking functions are for inpcb consumers outside of sys/netinet,
* more specifically, they were added for the benefit of TOE drivers. The
OpenPOWER on IntegriCloud