Files
SystemPaw3/paw/stos/ob/init.c
T
Chloe M. 70f58b193f stos: ob: Initialize object manager
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-25 00:51:24 +00:00

35 lines
608 B
C

/*
* Copyright (c) 2026, Chloe M.
* Provided under the BSD-3 clause.
*
* Description: Object manager init funcs
* Author: Chloe M.
*/
#include <ob/object.h>
#include <ex/trace.h>
#include <ke/knot.h>
#define DTRACE(Fmt, ...) \
TRACE("[ OB ]: " Fmt, ##__VA_ARGS__)
/* Globals */
static ST_OBJECT *RootDirectory;
VOID
ObInitManager(VOID)
{
ST_STATUS Status;
Status = ObCreateDirectory(
"/",
&RootDirectory
);
if (Status != STATUS_SUCCESS) {
KeKnot(KNOT_MISC, "failed to initialize object manager\n");
}
DTRACE("mounted root at '/'\n");
}