Per-cpu kernel pseudo process

This commit is contained in:
2026-03-11 17:47:12 +01:00
parent f1268ec1ba
commit e765855309
10 changed files with 89 additions and 33 deletions

View File

@@ -125,13 +125,8 @@ int vfs_volume_open (struct proc* proc, const char* volume_name, struct reschedu
spin_unlock (&volume->lock);
return ST_OK;
} else {
if (proc == VFS_KERNEL) {
spin_unlock (&volume->lock);
return -ST_TRY_AGAIN;
} else {
proc_sq_suspend (proc, &volume->sq, &volume->lock, rctx);
return ST_OK;
}
proc_sq_suspend (proc, &volume->sq, &volume->lock, rctx);
return ST_OK;
}
}

View File

@@ -16,8 +16,6 @@
#include <proc/suspension_q.h>
#include <sync/spin_lock.h>
#define VFS_KERNEL ((struct proc*)0x123)
struct vfs_volume;
struct vfs_volume {