lib: fs: add library for implementing a filesystem service

This commit is contained in:
2026-03-06 20:17:23 +00:00
parent c4fd252f86
commit 5658e27445
15 changed files with 1506 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#include <errno.h>
#include <fs/context.h>
extern kern_status_t fs_msg_open(
const struct msg_endpoint *sender,
const char *path,
int flags,
int *out_err,
void *arg)
{
struct fs_context *ctx = arg;
struct fs_dentry *dent = fs_context_resolve_path(ctx, path);
if (!dent) {
*out_err = ENOENT;
return KERN_OK;
}
*out_err = SUCCESS;
return KERN_OK;
}