Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Mar 2012 21:51:40 +0000 (UTC)
From:      Robert Millan <rmh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r233096 - head/sys/netinet
Message-ID:  <201203172151.q2HLpeI4088549@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rmh
Date: Sat Mar 17 21:51:39 2012
New Revision: 233096
URL: http://svn.freebsd.org/changeset/base/233096

Log:
  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

Modified:
  head/sys/netinet/in_pcb.h

Modified: head/sys/netinet/in_pcb.h
==============================================================================
--- head/sys/netinet/in_pcb.h	Sat Mar 17 19:40:37 2012	(r233095)
+++ head/sys/netinet/in_pcb.h	Sat Mar 17 21:51:39 2012	(r233096)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203172151.q2HLpeI4088549>