Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Feb 2018 10:39:39 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r329975 - stable/11/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201802251039.w1PAddTp018709@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Sun Feb 25 10:39:39 2018
New Revision: 329975
URL: https://svnweb.freebsd.org/changeset/base/329975

Log:
  MFC r329584:
  Implement list_safe_reset_next() function macro in the LinuxKPI.
  
  Submitted by:	Johannes Lundberg <johalun0@gmail.com>
  Sponsored by:	Mellanox Technologies
  Sponsored by:	Limelight Networks

Modified:
  stable/11/sys/compat/linuxkpi/common/include/linux/list.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linuxkpi/common/include/linux/list.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/list.h	Sun Feb 25 10:38:42 2018	(r329974)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/list.h	Sun Feb 25 10:39:39 2018	(r329975)
@@ -179,6 +179,9 @@ list_del_init(struct list_head *entry)
 #define	list_next_entry(ptr, member)					\
 	list_entry(((ptr)->member.next), typeof(*(ptr)), member)
 
+#define	list_safe_reset_next(ptr, n, member) \
+	(n) = list_next_entry(ptr, member)
+
 #define	list_prev_entry(ptr, member)					\
 	list_entry(((ptr)->member.prev), typeof(*(ptr)), member)
 



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