Working on reorganizing kernel.c
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
#ifndef QUARK_PROCESS_H
|
||||
#define QUARK_PROCESS_H
|
||||
|
||||
#include "types/message.h"
|
||||
#include "types/pid.h"
|
||||
#include "types/physaddr.h"
|
||||
#include "types/status.h"
|
||||
#include "queue.h"
|
||||
#include "addressspace.h"
|
||||
#include "sharedobject.h"
|
||||
|
||||
typedef enum process_state_t
|
||||
{
|
||||
@@ -21,7 +23,6 @@ typedef struct process_t
|
||||
address_space_t *address_space;
|
||||
struct avltree_t *shared_objects;
|
||||
process_state_t state;
|
||||
struct queue_t sending_queue;
|
||||
struct queue_t message_queue;
|
||||
struct message_t *message_buffer;
|
||||
struct process_context_t *ctx;
|
||||
@@ -29,4 +30,10 @@ typedef struct process_t
|
||||
|
||||
process_t *process_construct(pid_t pid, void *entry, void *stack, int priority, address_space_t *address_space);
|
||||
|
||||
error_t process_queue_message(process_t *process, message_t *msg);
|
||||
|
||||
error_t process_store_object(process_t *process, int id, void *location);
|
||||
|
||||
void *process_get_object(process_t *process, int id);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user