proc.h: add semaphore for process

This commit is contained in:
Michael Shaw 2024-06-11 22:53:25 -04:00
commit 3e6592b0f3

View file

@ -4,9 +4,12 @@
#include <stdint.h>
#include <stdbool.h>
#include <kernel/lock.h>
#include <kernel/rbtree.h>
#include <lib/sem.h>
#define PROC_RUNNING 0
#define PROC_STOPPED 1
#define PROC_BLOCKED 2
@ -69,6 +72,8 @@ struct proc {
void *arg4;
} unblock_args;
ssize_t block_retval;
sem_t block_sem;
};
struct procregs *proc_current_regs();