mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
23 lines
406 B
C
23 lines
406 B
C
#ifndef _FS_KERNFS_H
|
|
#define _FS_KERNFS_H
|
|
|
|
#include <fs/fs.h>
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
|
|
#define MAX_OPEN_FILES 256
|
|
|
|
typedef struct {
|
|
FILE* openFileTable;
|
|
uint32_t openFiles;
|
|
} fsInfo_t;
|
|
|
|
extern superblock_t* impl_superblock;
|
|
extern fsInfo_t* fsInfo;
|
|
|
|
inode_t* getInode(char* path, dirEntry_t* dentries);
|
|
uint8_t loadFile(inode_t* inode, void* dest);
|
|
void initOpenFileTable();
|
|
|
|
#endif
|