Files
Espresso/drivers/fs/vfs.c

33 lines
695 B
C
Raw Normal View History

2025-07-01 20:39:38 -05:00
2025-06-17 15:50:07 -05:00
#include <stdlib.h>
#include <string.h>
2025-07-01 20:39:38 -05:00
#include <fs/vfs.h>
2025-06-17 15:50:07 -05:00
2025-07-01 20:39:38 -05:00
typedef struct vfs_file_header {
char* filename; /* The filename, not the path. */
int32_t fd;
uint8_t type_info; /* Bits 0 - 3 -> File type, Bits 4 - 7 FS type */
uint16_t* fs_header;
struct vfs_file_header* next; /* Linked list */
} vfs_file_header_t;
2025-06-17 15:50:07 -05:00
2025-07-01 20:39:38 -05:00
vfs_file_header_t* root;
2025-06-17 15:50:07 -05:00
2025-07-01 20:39:38 -05:00
/*
This is being written as a test.
This has no affect on aaand my CPU is at 87 degrees Celsius and /usr/bin/gnome-shell is at 115% CPU utilization.
Just by writing that.
wow.
and now my CPU fan is going nuts.
--update: now it works. I had to go back to nouveau instead of the proprietary nVidia drivers..
2025-06-17 15:50:07 -05:00
*/