kernel: add initial object manager definitions

This commit is contained in:
2023-02-17 19:36:14 +00:00
parent ff19915466
commit ef10ed5cd2
6 changed files with 243 additions and 11 deletions

16
obj/set.c Normal file
View File

@@ -0,0 +1,16 @@
#include <socks/object.h>
struct set {
queue_t s_list;
spin_lock_t s_lock;
};
static object_type_t set_type = {
.ob_name = "set",
.ob_size = sizeof(struct set),
};
void init_set_objects(void)
{
object_type_register(&set_type);
}