diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-20 15:47:51 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-20 15:47:51 +0100 |
commit | 9ba449a6e5f9db20923fb9802eefe0f090ba5fff (patch) | |
tree | f0f58bfa44a30e61e30caf08af1cdf03bef822f0 /src/kernel/include/process.h | |
parent | 2d4d64189501c253ed6a5b5ff5e27da1cb34407a (diff) | |
download | kogata-9ba449a6e5f9db20923fb9802eefe0f090ba5fff.tar.gz kogata-9ba449a6e5f9db20923fb9802eefe0f090ba5fff.zip |
Change mode of operation for mmap_file (see readme)
Diffstat (limited to 'src/kernel/include/process.h')
-rw-r--r-- | src/kernel/include/process.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/kernel/include/process.h b/src/kernel/include/process.h index 07cc14e..6e287e1 100644 --- a/src/kernel/include/process.h +++ b/src/kernel/include/process.h @@ -21,7 +21,22 @@ #define USERSTACK_ADDR 0xB8000000 #define USERSTACK_SIZE 0x00020000 // 32 KB -struct user_region; +typedef struct process process_t; + +typedef struct user_region { + process_t *proc; + + void* addr; + size_t size; + + int mode; + + fs_handle_t *file; // null if not mmaped-file + size_t file_offset; + + struct user_region *next; +} user_region_t; + typedef struct process { pagedir_t *pd; struct user_region *regions; @@ -32,6 +47,7 @@ typedef struct process { int next_fd; thread_t *thread; + uint64_t last_ran; int pid; struct process *parent; |