libfs: add support for special files not backed by a filesystem
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user