Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Feb 2017 14:40:15 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r314207 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201702241440.v1OEeFJa095968@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Fri Feb 24 14:40:15 2017
New Revision: 314207
URL: https://svnweb.freebsd.org/changeset/base/314207

Log:
  Implement srcu_dereference() macro in the LinuxKPI.
  
  MFC after:		1 week
  Sponsored by:		Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/linux/srcu.h

Modified: head/sys/compat/linuxkpi/common/include/linux/srcu.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/srcu.h	Fri Feb 24 14:37:55 2017	(r314206)
+++ head/sys/compat/linuxkpi/common/include/linux/srcu.h	Fri Feb 24 14:40:15 2017	(r314207)
@@ -34,6 +34,8 @@ struct srcu_struct {
 	struct ck_epoch_record *ss_epoch_record;
 };
 
+#define	srcu_dereference(ptr,srcu)	((__typeof(*(ptr)) *)(ptr))
+
 /* prototypes */
 
 extern int srcu_read_lock(struct srcu_struct *);



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