diff options
author | Latchesar Ionkov <lucho@ionkov.net> | 2006-01-08 04:04:58 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-08 23:14:05 -0500 |
commit | 3cf6429a26da5c4d7b795e6d0f8f56ed2e4fdfc0 (patch) | |
tree | a8d856763fd9a0536519634c93ab92da684107fa /fs/9p/9p.h | |
parent | f5ef3c105bee3a52486d7b55cef3330fcde9bca6 (diff) |
[PATCH] v9fs: new multiplexer implementation
New multiplexer implementation. Decreases the number of kernel threads
required. Better handling when the user process receives a signal.
Signed-off-by: Latchesar Ionkov <lucho@ionkov.net>
Cc: Eric Van Hensbergen <ericvh@ericvh.myip.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/9p/9p.h')
-rw-r--r-- | fs/9p/9p.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/9p/9p.h b/fs/9p/9p.h index f55424216be2..6355392786e2 100644 --- a/fs/9p/9p.h +++ b/fs/9p/9p.h | |||
@@ -100,6 +100,9 @@ enum { | |||
100 | V9FS_QTFILE = 0x00, | 100 | V9FS_QTFILE = 0x00, |
101 | }; | 101 | }; |
102 | 102 | ||
103 | #define V9FS_NOTAG (u16)(~0) | ||
104 | #define V9FS_NOFID (u32)(~0) | ||
105 | |||
103 | /* ample room for Twrite/Rread header (iounit) */ | 106 | /* ample room for Twrite/Rread header (iounit) */ |
104 | #define V9FS_IOHDRSZ 24 | 107 | #define V9FS_IOHDRSZ 24 |
105 | 108 | ||
@@ -303,6 +306,9 @@ struct v9fs_fcall { | |||
303 | } params; | 306 | } params; |
304 | }; | 307 | }; |
305 | 308 | ||
309 | #define V9FS_FCALLHDRSZ (sizeof(struct v9fs_fcall) + \ | ||
310 | sizeof(struct v9fs_stat) + 16*sizeof(struct v9fs_qid) + 16) | ||
311 | |||
306 | #define FCALL_ERROR(fcall) (fcall ? fcall->params.rerror.error : "") | 312 | #define FCALL_ERROR(fcall) (fcall ? fcall->params.rerror.error : "") |
307 | 313 | ||
308 | int v9fs_t_version(struct v9fs_session_info *v9ses, u32 msize, | 314 | int v9fs_t_version(struct v9fs_session_info *v9ses, u32 msize, |
@@ -311,8 +317,7 @@ int v9fs_t_version(struct v9fs_session_info *v9ses, u32 msize, | |||
311 | int v9fs_t_attach(struct v9fs_session_info *v9ses, char *uname, char *aname, | 317 | int v9fs_t_attach(struct v9fs_session_info *v9ses, char *uname, char *aname, |
312 | u32 fid, u32 afid, struct v9fs_fcall **rcall); | 318 | u32 fid, u32 afid, struct v9fs_fcall **rcall); |
313 | 319 | ||
314 | int v9fs_t_clunk(struct v9fs_session_info *v9ses, u32 fid, | 320 | int v9fs_t_clunk(struct v9fs_session_info *v9ses, u32 fid); |
315 | struct v9fs_fcall **rcall); | ||
316 | 321 | ||
317 | int v9fs_t_flush(struct v9fs_session_info *v9ses, u16 oldtag); | 322 | int v9fs_t_flush(struct v9fs_session_info *v9ses, u16 oldtag); |
318 | 323 | ||