summaryrefslogtreecommitdiffstats
path: root/api/process.h
blob: 52e787e5bbb6676ad08ecfd16040823c692afb7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef _JOVE_API_PROCESS_H
#define _JOVE_API_PROCESS_H 1

#include <stdint.h>

typedef intmax_t pid_t;

enum pcb_state
{
    _PCB_STATE_INVALID = 0,
    PCB_STATE_STOPPED,
    PCB_STATE_EMBRYO,
    PCB_STATE_READY, 
    PCB_STATE_RUNNING, 
    PCB_STATE_BLOCKED_KOBJ,
    PCB_STATE_BLOCKED_MAIL
};

enum pcb_rootdir_entries
{
    _PCB_ROOTDIR_NULL = 0,
    PCB_ROOTDIR_SELF_I,
    PCB_ROOTDIR_PAGEDIR_I,
};

enum pcb_stack_type
{
    PCB_STACK_SYSTEM = 0,
    PCB_STACK_INTERRUPT
};

#endif