]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/exportfs/exportfs.h
exportfs: reverting previous changes
[plan9front.git] / sys / src / cmd / exportfs / exportfs.h
index b3587fab2ba4e3daacfc8376e6a5a9241449ebcf..77709d0d97add6831df80b8061960cc5194d79c9 100644 (file)
@@ -15,6 +15,8 @@ typedef struct Qidtab Qidtab;
 struct Fsrpc
 {
        Fsrpc   *next;          /* freelist */
+       uintptr pid;            /* Pid of slave process executing the rpc */
+       int     canint;         /* Interrupt gate */
        int     flushtag;       /* Tag on which to reply to flush */
        Fcall   work;           /* Plan 9 incoming Fcall */
        uchar   buf[];          /* Data buffer */
@@ -51,10 +53,9 @@ struct File
 
 struct Proc
 {
-       Lock;
+       uintptr pid;
        Fsrpc   *busy;
        Proc    *next;
-       int     pid;
 };
 
 struct Qidtab
@@ -69,6 +70,7 @@ struct Qidtab
 
 enum
 {
+       MAXPROC         = 50,
        FHASHSIZE       = 64,
        Fidchunk        = 1000,
        Npsmpt          = 32,
@@ -126,7 +128,7 @@ void        freefile(File*);
 void   slaveopen(Fsrpc*);
 void   slaveread(Fsrpc*);
 void   slavewrite(Fsrpc*);
-void   blockingslave(Proc*);
+void   blockingslave(void);
 void   reopen(Fid *f);
 void   noteproc(int, char*);
 void   flushaction(void*, char*);