feat(fatfs): remember by which core an FD was opened, allow to close all FDs by a certain core
All threads resolved!
Compare changes
+ 25
− 3
@@ -22,6 +22,7 @@
@@ -44,6 +45,7 @@
@@ -56,6 +58,7 @@ struct EpicFileSystem {
@@ -64,7 +67,7 @@ static const int s_libffToErrno[20];
@@ -159,7 +162,7 @@ void fatfs_detach()
@@ -177,6 +180,14 @@ void fatfs_detach()
@@ -216,6 +227,11 @@ int efs_lock_global(EpicFileSystem **fs)
@@ -292,6 +308,7 @@ static int efs_obj_init(
@@ -300,6 +317,7 @@ static void efs_obj_deinit(EpicFileSystem *fs, struct FatObject *obj)
@@ -392,9 +410,13 @@ int efs_close(EpicFileSystem *fs, int fd)