aboutsummaryrefslogtreecommitdiff
path: root/include/lib/ll.h
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-06 15:51:48 -0800
committerChristian Cunningham <cc@localhost>2022-01-06 15:51:48 -0800
commita61201b8047ebe278cfb281723a4bf6c82556472 (patch)
treef3b2d5b4a9e537fa8f370b00d0c4d4b637223303 /include/lib/ll.h
parenta826a645a67c2be3c7acb097c436c810da728ed7 (diff)
Scheduling
Diffstat (limited to 'include/lib/ll.h')
-rw-r--r--include/lib/ll.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/lib/ll.h b/include/lib/ll.h
index ab4148d..a9c3722 100644
--- a/include/lib/ll.h
+++ b/include/lib/ll.h
@@ -5,11 +5,13 @@ struct LL {
struct LL* prev;
struct LL* next;
void* data;
-};
+} __attribute__((packed));
struct LL* new_ll(void* val);
void push_ll(struct LL* l, void* val);
+void pop_ll(struct LL* l);
void remove_ll(struct LL* l, unsigned long idx);
+unsigned long length_ll(struct LL* l);
#define show_ll(L, TYPE) { \
struct LL* t = L; \