summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2023-01-19 23:36:11 +0100
committerdzwdz2023-01-19 23:36:11 +0100
commita2f9ae9d4ab678fa66a2ec5d1072ea22a36a18a1 (patch)
treec048e9165b27d27075d2c17ab943ac52b46a6a40 /src/kernel/proc.h
parentda546a0822b1995efe1832c9cc57aab62ccdcf65 (diff)
kernel: user interrupts
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h
index b95e901..041dbd0 100644
--- a/src/kernel/proc.h
+++ b/src/kernel/proc.h
@@ -81,6 +81,9 @@ struct process {
/* vfs_backend controlled (not exclusively) by this process */
struct vfs_backend *controlled;
+ /* interrupt handler */
+ void __user *intr_fn;
+
struct {
void *buf;
size_t len;
@@ -100,6 +103,8 @@ void process_filicide(struct process *proc, int ret);
/** Tries to reap a dead process / free a tombstone. */
void process_tryreap(struct process *dead);
+void process_intr(struct process *proc);
+
/** Switches execution to any running process. */
_Noreturn void process_switch_any(void);