Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Mar 2014 11:09:17 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r263088 - stable/10/sys/sys
Message-ID:  <201403121109.s2CB9HnA034235@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Wed Mar 12 11:09:17 2014
New Revision: 263088
URL: http://svnweb.freebsd.org/changeset/base/263088

Log:
  Merge r256514:
    - While we are spreading the counter(9) across network stack, more userland
    tools would need to know about the counter_u64_t type. Allow to include
    sys/counter.h from userspace.

Modified:
  stable/10/sys/sys/counter.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/sys/counter.h
==============================================================================
--- stable/10/sys/sys/counter.h	Wed Mar 12 10:59:51 2014	(r263087)
+++ stable/10/sys/sys/counter.h	Wed Mar 12 11:09:17 2014	(r263088)
@@ -31,6 +31,7 @@
 
 typedef uint64_t *counter_u64_t;
 
+#ifdef _KERNEL
 #include <machine/counter.h>
 
 counter_u64_t	counter_u64_alloc(int);
@@ -58,4 +59,5 @@ uint64_t	counter_u64_fetch(counter_u64_t
 	for (int i = 0; i < (n); i++)				\
 		counter_u64_zero((a)[i]);			\
 } while (0)
+#endif	/* _KERNEL */
 #endif	/* ! __SYS_COUNTER_H__ */



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