Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Oct 2014 21:39:50 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r272574 - head/sys/sys
Message-ID:  <201410052139.s95LdoJw029807@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Sun Oct  5 21:39:50 2014
New Revision: 272574
URL: https://svnweb.freebsd.org/changeset/base/272574

Log:
  seq_t needs to be visible to userspace
  
  Pointy hat to:	mjg
  Reported by: bz
  X-MFC:	with r272567

Modified:
  head/sys/sys/seq.h

Modified: head/sys/sys/seq.h
==============================================================================
--- head/sys/sys/seq.h	Sun Oct  5 21:34:56 2014	(r272573)
+++ head/sys/sys/seq.h	Sun Oct  5 21:39:50 2014	(r272574)
@@ -29,6 +29,16 @@
 #define _SYS_SEQ_H_
 
 #ifdef _KERNEL
+#include <sys/systm.h>
+#endif
+#include <sys/types.h>
+
+/*
+ * seq_t may be included in structs visible to userspace
+ */
+typedef uint32_t seq_t;
+
+#ifdef _KERNEL
 
 /*
  * Typical usage:
@@ -54,10 +64,7 @@
  * 	foo(lobj);
  */		
 
-typedef uint32_t seq_t;
-
 /* A hack to get MPASS macro */
-#include <sys/systm.h>
 #include <sys/lock.h>
 
 #include <machine/cpu.h>



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