X-Git-Url: https://pd.if.org/git/?p=zos;a=blobdiff_plain;f=klib%2Fobjlist.h;fp=klib%2Fobjlist.h;h=dacfad4617ec645ca682e8b84c19bc410fd2c4ca;hp=0000000000000000000000000000000000000000;hb=5c0e560e481e2e97b793f7574e849a5882781df9;hpb=e57b692bd3a86ee40fd89416a06fd696f1ff3bf9 diff --git a/klib/objlist.h b/klib/objlist.h new file mode 100644 index 0000000..dacfad4 --- /dev/null +++ b/klib/objlist.h @@ -0,0 +1,17 @@ +#ifndef KERNEL_DS_H_ +#define KERNEL_DS_H_ 1 + +#include + +#define KOLIST_MAX_INDEX 507 +/* an empty list has next and prev pointers null */ +/* or, use one as a sentinel? could store an object count in the flags then */ +struct kobj_list { + struct kobj_list *next; + struct kobj_list *prev; + void *obj; /* a pointer to where a new object would go */ + /* we've got room for 32 bytes, might as well have some flags */ + uint64_t flags; +}; + +#endif