Kernel: You can now read/write to RamInodes

RamFS should be stored on physical pages and not in kmalloc, but
that will be implemented later :)
This commit is contained in:
Bananymous
2023-07-10 14:09:35 +03:00
parent 74fc0aa308
commit a0ecbed726
2 changed files with 59 additions and 7 deletions

View File

@@ -30,6 +30,9 @@ namespace Kernel
virtual BAN::StringView name() const override { ASSERT_NOT_REACHED(); }
virtual BAN::ErrorOr<size_t> read(size_t, void*, size_t) override;
virtual BAN::ErrorOr<size_t> write(size_t, const void*, size_t) override;
void add_link() { m_inode_info.nlink++; }
protected: