mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
kernel: rework init
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <errno.h>
|
||||
#include <kernel/abi.h>
|
||||
#include <kernel/poll.h>
|
||||
#include <kernel/init.h>
|
||||
|
||||
#define BUFFER_SIZE 16 * PAGE_SIZE
|
||||
#define PIPE_ATOMIC_SIZE 4096
|
||||
@@ -403,6 +404,8 @@ void pipefs_init() {
|
||||
__assert(nodecache);
|
||||
}
|
||||
|
||||
INIT_ROUTINE_DEFINE(pipefs, INIT_ROUTINE_FLAGS_NONE, pipefs_init, bsp_early);
|
||||
|
||||
int pipefs_newpipe(vnode_t **nodep) {
|
||||
vnode_t *vnode = slab_allocate(nodecache);
|
||||
pipenode_t *node = (pipenode_t *)vnode;
|
||||
|
||||
Reference in New Issue
Block a user