mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
scheduler: getcwd, getroot, and initialise process cwd and root to vfsroot
This commit is contained in:
@@ -50,6 +50,7 @@ typedef struct proc_t {
|
||||
int flags;
|
||||
vnode_t *cwd;
|
||||
vnode_t *root;
|
||||
spinlock_t nodeslock;
|
||||
} proc_t;
|
||||
|
||||
#include <arch/cpu.h>
|
||||
@@ -64,6 +65,9 @@ void sched_preparesleep(bool interruptible);
|
||||
void sched_wakeup(thread_t *thread, int reason);
|
||||
int sched_sleep();
|
||||
proc_t *sched_newproc();
|
||||
vnode_t *sched_getcwd();
|
||||
vnode_t *sched_getroot();
|
||||
thread_t *sched_newthread(void *ip, size_t kstacksize, int priority, proc_t *proc, void *ustack);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user