kernel: rework init

This commit is contained in:
Matheus
2025-08-14 20:25:43 -03:00
parent fb6cbe49d7
commit 607566531d
41 changed files with 268 additions and 164 deletions
+3
View File
@@ -9,6 +9,7 @@
#include <kernel/poll.h>
#include <kernel/sock.h>
#include <kernel/auth.h>
#include <kernel/init.h>
static scache_t *nodecache;
static uintmax_t currentinode;
@@ -267,6 +268,8 @@ void sockfs_init() {
__assert(nodecache);
}
INIT_ROUTINE_DEFINE(sockfs, INIT_ROUTINE_FLAGS_NONE, sockfs_init, bsp_early);
int sockfs_newsocket(vnode_t **nodep, socket_t *socket) {
vnode_t *vnode = slab_allocate(nodecache);
socketnode_t *node = (socketnode_t *)vnode;