k-tana-zero/k/fd.h

20 lines
246 B
C
Raw Normal View History

#ifndef FD_H
#define FD_H
#include <k/types.h>
#define MAX_FD 65535
struct file_entry
{
u8 open;
u32 lba;
2022-04-23 19:37:54 +00:00
u32 file_offset;
u32 file_size;
};
2022-04-23 19:37:54 +00:00
int register_fd(u32 lba, u32 file_size);
int destroy_fd(int fd);
#endif /* !FD_H */