Files
codezero/tasks/fs0/include/task.h
Bahadir Balban f078116901 Added per-task curdir. and chdir, pager_read/write, mmap and munmap calls.
They look like what they should look like, but untested.
2008-02-20 00:50:03 +00:00

29 lines
510 B
C

/*
* Copyright (C) 2008 Bahadir Balban
*/
#ifndef __FS0_TASK_H__
#define __FS0_TASK_H__
#include <lib/idpool.h>
#include <l4/lib/list.h>
#include <l4/api/kip.h>
#define __TASKNAME__ __VFSNAME__
#define TASK_OFILES_MAX 32
/* Thread control block, fs0 portion */
struct tcb {
l4id_t tid;
struct list_head list;
int fd[TASK_OFILES_MAX];
struct id_pool *fdpool;
struct vnode *curdir;
struct vnode *rootdir;
};
struct tcb *find_task(int tid);
int init_task_data(void);
#endif /* __FS0_TASK_H__ */