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

17
lib/libfs/file.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef _FS_FILE_H_
#define _FS_FILE_H_
#include "btree.h"
#include <fs/file.h>
struct fs_file {
/* id of the open file, equal to the koid of the port being used to
* access the file */
unsigned long f_id;
struct btree_node f_node;
const struct fs_file_ops *f_ops;
};
#endif