From c9fbab701ff57583733c84fa93889eacf422b861 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 13 Sep 2023 00:05:06 +0200 Subject: cmd/init: remove /initctl, use intr instead --- src/kernel/proc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/kernel/proc.h') diff --git a/src/kernel/proc.h b/src/kernel/proc.h index 15da852..bfe5cfc 100644 --- a/src/kernel/proc.h +++ b/src/kernel/proc.h @@ -119,6 +119,10 @@ void proc_filicide(Proc *proc, int ret); /** Tries to reap a dead process / free a tombstone. */ void proc_tryreap(Proc *dead); +/** Try to interrupt whatever the process is doing instead of PS_RUNNING. */ +void proc_tryintr(Proc *p); + +/** Send an interupt to a process. */ void proc_intr(Proc *proc); /** Switches execution to any running process. */ -- cgit v1.2.3