]> pd.if.org Git - zos/blob - klib/objlist.h
klib and makefile
[zos] / klib / objlist.h
1 #ifndef KERNEL_DS_H_
2 #define KERNEL_DS_H_ 1
3
4 #include <stdint.h>
5
6 #define KOLIST_MAX_INDEX 507
7 /* an empty list has next and prev pointers null */
8 /* or, use one as a sentinel? could store an object count in the flags then */
9 struct kobj_list {
10         struct kobj_list *next;
11         struct kobj_list *prev;
12         void *obj; /* a pointer to where a new object would go */
13         /* we've got room for 32 bytes, might as well have some flags */
14         uint64_t flags; 
15 };
16
17 #endif