svn commit: r329975 - stable/11/sys/compat/linuxkpi/common/include/linux

Hans Petter Selasky hselasky at FreeBSD.org
Sun Feb 25 10:39:40 UTC 2018


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 at 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)
 


More information about the svn-src-all mailing list