svn commit: r329584 - head/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Feb 19 16:31:20 UTC 2018
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 <johalun0 at 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)
More information about the svn-src-all
mailing list