-/* $OpenBSD: list.h,v 1.6 2023/01/01 01:34:58 jsg Exp $ */
+/* $OpenBSD: list.h,v 1.7 2023/01/18 23:47:25 jsg Exp $ */
/* drm_linux_list.h -- linux list functions for the BSDs.
* Created: Mon Apr 7 14:30:16 1999 by anholt@FreeBSD.org
*/
return list->next == head;
}
+static inline void
+__list_add(struct list_head *new, struct list_head *prev,
+ struct list_head *next)
+{
+ next->prev = new;
+ new->next = next;
+ new->prev = prev;
+ prev->next = new;
+}
+
static inline void
list_add(struct list_head *new, struct list_head *head) {
(head)->next->prev = new;