stos: Add kernel knotting impl

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-23 05:36:10 +00:00
parent d2596979a2
commit 81d5f13a30
4 changed files with 136 additions and 1 deletions
+34
View File
@@ -0,0 +1,34 @@
/*
* Copyright (c) 2026, Chloe M.
* Provided under the BSD-3 clause.
*
* Description: Fucks and knots the kernel
* Author: Chloe M.
*/
#ifndef _KE_KNOT_H_
#define _KE_KNOT_H_ 1
#include <stdef.h>
/*
* Valid knot reasons
*
* @KNOT_MISC: Misc. reason
* @KNOT_UNBOUND_RSRC: Unbounded resource
*/
typedef enum {
KNOT_MISC,
KNOT_UNBOUND_RSRC
} KNOT_REASON;
/*
* Fuck and knot the kernel if it is misbehaving
*
* @Reason: Reason of knotting
* @Fmt: Format string
* @<...>: Variadic arguments
*/
VOID KeKnot(KNOT_REASON Reason, const char *Fmt, ...);
#endif /* !_KE_KNOT_H_ */