feat: No more kernel page table switching upon interrupt.
[lunaix-os.git] / lunaix-os / includes / lunaix / ds / llist.h
index effee950b376a16ea01f1626f64684516bf9d405..dd2a1921b97bc07b5114413c7abac919ab0d3870 100644 (file)
@@ -58,6 +58,10 @@ llist_delete(struct llist_header* elem) {
     elem->next = elem;
 }
 
+static inline int llist_empty(struct llist_header* elem) {
+    return elem->next == elem;
+}
+
 /**
  * list_entry - get the struct for this entry
  * @ptr:       the &struct list_head pointer.