git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
feat: No more kernel page table switching upon interrupt.
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
ds
/
llist.h
diff --git
a/lunaix-os/includes/lunaix/ds/llist.h
b/lunaix-os/includes/lunaix/ds/llist.h
index effee950b376a16ea01f1626f64684516bf9d405..dd2a1921b97bc07b5114413c7abac919ab0d3870 100644
(file)
--- a/
lunaix-os/includes/lunaix/ds/llist.h
+++ b/
lunaix-os/includes/lunaix/ds/llist.h
@@
-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.