Files

24 lines
401 B
C
Raw Permalink Normal View History

#ifndef _FS_FILE_H_
#define _FS_FILE_H_
#include "btree.h"
#include <fs/dentry.h>
#include <fs/file.h>
#include <fs/inode.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;
off_t f_seek;
struct fs_inode *f_inode;
struct fs_dentry *f_dent;
};
#endif