summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2022-04-14 12:36:34 +0200
committerdzwdz2022-04-14 12:36:34 +0200
commit0d59c8d11173b28f958413128eb792655568a365 (patch)
tree4750ee37a845bdae8f9fbc85eb6baa80fdc7a8cc /src/kernel/proc.h
parent18d757e1b4939b24031935a6db59aefee4669e68 (diff)
kernel: store a pointer to the callback function in .waits4irq
removes `proc.c`'s pointless dependency on `vfs/root.h`
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h
index eaa649a..5daef31 100644
--- a/src/kernel/proc.h
+++ b/src/kernel/proc.h
@@ -40,6 +40,7 @@ struct process {
struct {
struct vfs_request req;
bool (*ready)();
+ void (*callback)(struct process *);
} waits4irq;
};
struct vfs_request *handled_req;