libfs: add support for special files not backed by a filesystem

This commit is contained in:
2026-04-01 18:57:59 +01:00
parent f2e6e7785d
commit 8ebf44dca9
3 changed files with 7 additions and 1 deletions
+5
View File
@@ -1,5 +1,10 @@
#include "file.h"
void fs_file_set_ops(struct fs_file *f, const struct fs_file_ops *ops)
{
f->f_ops = ops;
}
struct fs_inode *fs_file_get_inode(const struct fs_file *f)
{
return f->f_inode;