forked from PoliEcho-holding-org/kern
Major libk restructuring, also rewrote drivers/serial.h
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user