VFS mountpoint backing device system
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m24s

This commit is contained in:
2026-02-16 23:48:45 +01:00
parent 7726fd2f00
commit 9aea870159
22 changed files with 528 additions and 241 deletions

View File

@@ -1,6 +1,8 @@
#ifndef _M_FS_DESC_BUFFER_H
#define _M_FS_DESC_BUFFER_H
#include <stddef.h>
#define FS_FILE 0
#define FS_DIR 1

View File

@@ -0,0 +1,6 @@
#ifndef _M_RAMDISK_DEVICE_H
#define _M_RAMDISK_DEVICE_H
#define RAMDISK_DEVICE 100
#endif // _M_RAMDISK_DEVICE_H

View File

@@ -14,5 +14,6 @@
#define ST_OOB_ERROR 10
#define ST_BAD_PATH 11
#define ST_EXEC_ERROR 12
#define ST_MOUNT_ERROR 13
#endif // _M_STATUS_H

11
include/m/xdrv_device.h Normal file
View File

@@ -0,0 +1,11 @@
#ifndef _M_XDRV_DEVICE_H
#define _M_XDRV_DEVICE_H
#define XDRV_TYPE_RAMDRV 0
#define XDRV_GET_SIZE 0
#define XDRV_GET_SECTOR_SIZE 1
#define XDRV_GET_DEVICE_TYPE 2
#define XDRV_READ 3
#endif // _M_XDRV_DEVICE_H