Author: hselasky
Date: Mon Feb 19 16:31:19 2018
New Revision: 329584
URL: https://svnweb.freebsd.org/changeset/base/329584

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

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

Modified: head/sys/compat/linuxkpi/common/include/linux/list.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/list.h        Mon Feb 19 
16:25:43 2018        (r329583)
+++ head/sys/compat/linuxkpi/common/include/linux/list.h        Mon Feb 19 
16:31:19 2018        (r329584)
@@ -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)
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to