We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6edae3e commit e9b83dbCopy full SHA for e9b83db
list.h
@@ -289,6 +289,14 @@ static inline void list_splice_init(struct list_head *list,
289
#define list_first_entry(ptr, type, member) \
290
list_entry((ptr)->next, type, member)
291
292
+/**
293
+ * list_next_entry - get the next element in list
294
+ * @pos: the type * to cursor
295
+ * @member: the name of the list_head within the struct.
296
+ */
297
+#define list_next_entry(pos, member) \
298
+ list_entry((pos)->member.next, typeof(*(pos)), member)
299
+
300
/**
301
* list_for_each - iterate over a list
302
* @pos: the &struct list_head to use as a loop cursor.
0 commit comments