From ca91b3b5be329f854182fb2970ceac4ddb1638b6 Mon Sep 17 00:00:00 2001 From: Philip Homburg Date: Fri, 22 Feb 2008 14:32:23 +0000 Subject: [PATCH] New fp_flags. Currently used to signal that is process should be suspended a driver is restarted. --- servers/vfs/fproc.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/servers/vfs/fproc.h b/servers/vfs/fproc.h index 1edfae913..961af0014 100644 --- a/servers/vfs/fproc.h +++ b/servers/vfs/fproc.h @@ -6,16 +6,15 @@ * possible or even necessary to tell when a slot is free here. */ EXTERN struct fproc { + unsigned fp_flags; + mode_t fp_umask; /* mask set by umask system call */ -/* struct inode *fp_workdir;*/ /* pointer to working directory's inode */ -/* struct inode *fp_rootdir;*/ /* pointer to current root dir (see chroot) */ - + struct vnode *fp_wd; /* working directory */ + struct vnode *fp_rd; /* root directory */ + struct filp *fp_filp[OPEN_MAX];/* the file descriptor table */ - struct vnode *fp_wd; - struct vnode *fp_rd; - fd_set fp_filp_inuse; /* which fd's are in use? */ uid_t fp_realuid; /* real user id */ uid_t fp_effuid; /* effective user id */ @@ -41,6 +40,12 @@ EXTERN struct fproc { endpoint_t fp_endpoint; /* kernel endpoint number of this process */ } fproc[NR_PROCS]; +/* fp_flags */ +#define NO_FLAGS 0 +#define SUSP_REOPEN 1 /* Process is suspended until the reopens are + * completed (after the restart of a driver). + */ + /* Field values. */ #define NOT_SUSPENDED 0 /* process is not suspended on pipe or task */ #define SUSPENDED 1 /* process is suspended on pipe or task */