ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Linux-AIO/AIO.xs
(Generate patch)

Comparing Linux-AIO/AIO.xs (file contents):
Revision 1.17 by root, Thu May 6 12:16:48 2004 UTC vs.
Revision 1.32 by root, Tue Jul 12 10:51:09 2005 UTC

8#include <sys/stat.h> 8#include <sys/stat.h>
9#include <unistd.h> 9#include <unistd.h>
10#include <fcntl.h> 10#include <fcntl.h>
11#include <signal.h> 11#include <signal.h>
12#include <sched.h> 12#include <sched.h>
13#include <endian.h>
13 14
14typedef void *InputStream; /* hack, but 5.6.1 is simply toooo old ;) */ 15typedef void *InputStream; /* hack, but 5.6.1 is simply toooo old ;) */
15typedef void *OutputStream; /* hack, but 5.6.1 is simply toooo old ;) */ 16typedef void *OutputStream; /* hack, but 5.6.1 is simply toooo old ;) */
16typedef void *InOutStream; /* hack, but 5.6.1 is simply toooo old ;) */ 17typedef void *InOutStream; /* hack, but 5.6.1 is simply toooo old ;) */
17 18
18#ifndef __NR_pread64 19#if __i386 || __amd64
19# define __NR_pread64 __NR_pread 20# define STACKSIZE ( 256 * sizeof (long))
21#elif __ia64
22# define STACKSIZE (8192 * sizeof (long))
23#else
24# define STACKSIZE ( 512 * sizeof (long))
20#endif 25#endif
21#ifndef __NR_pwrite64
22# define __NR_pwrite64 __NR_pwrite
23#endif
24 26
25#define STACKSIZE 1024 /* yeah */ 27enum {
26 28 REQ_QUIT,
27enum { REQ_QUIT, REQ_OPEN, REQ_CLOSE, REQ_READ, REQ_WRITE, REQ_STAT, REQ_LSTAT, REQ_FSTAT}; 29 REQ_OPEN, REQ_CLOSE,
30 REQ_READ, REQ_WRITE, REQ_READAHEAD,
31 REQ_STAT, REQ_LSTAT, REQ_FSTAT, REQ_UNLINK,
32 REQ_FSYNC, REQ_FDATASYNC,
33};
28 34
29typedef struct { 35typedef struct {
30 char stack[STACKSIZE]; 36 char stack[STACKSIZE];
31} aio_thread; 37} aio_thread;
32 38
33typedef struct { 39typedef struct aio_cb {
40 struct aio_cb *next;
41
34 int type; 42 int type;
35 aio_thread *thread; 43 aio_thread *thread;
36 44
37 int fd; 45 int fd;
38 off_t offset; 46 off_t offset;
42 int errorno; 50 int errorno;
43 SV *data, *callback; 51 SV *data, *callback;
44 void *dataptr; 52 void *dataptr;
45 STRLEN dataoffset; 53 STRLEN dataoffset;
46 54
47 struct stat64 *statdata; 55 Stat_t *statdata;
48} aio_cb; 56} aio_cb;
49 57
50typedef aio_cb *aio_req; 58typedef aio_cb *aio_req;
51 59
52static int started; 60static int started;
53static int nreqs; 61static int nreqs;
54static int reqpipe[2], respipe[2]; 62static int reqpipe[2], respipe[2];
55 63
64static aio_req qs, qe; /* queue start, queue end */
65
56static int aio_proc(void *arg); 66static int aio_proc(void *arg);
57 67
58static void 68static void
59start_thread(void) 69start_thread (void)
60{ 70{
61 aio_thread *thr; 71 aio_thread *thr;
62 72
63 New (0, thr, 1, aio_thread); 73 New (0, thr, 1, aio_thread);
64 74
65 if (clone (aio_proc, 75 if (clone (aio_proc,
66 &(thr->stack[STACKSIZE]), 76 &(thr->stack[STACKSIZE - 16]),
67 CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND, 77 CLONE_VM|CLONE_FS|CLONE_FILES,
68 thr) >= 0) 78 thr) >= 0)
69 started++; 79 started++;
70 else 80 else
71 Safefree (thr); 81 Safefree (thr);
72} 82}
73 83
74static void 84static void
85send_reqs (void)
86{
87 /* this write is atomic */
88 while (qs && write (reqpipe[1], &qs, sizeof qs) == sizeof qs)
89 {
90 qs = qs->next;
91 if (!qs) qe = 0;
92 }
93}
94
95static void
96send_req (aio_req req)
97{
98 nreqs++;
99 req->next = 0;
100
101 if (qe)
102 {
103 qe->next = req;
104 qe = req;
105 }
106 else
107 qe = qs = req;
108
109 send_reqs ();
110}
111
112static void
75end_thread(void) 113end_thread (void)
76{ 114{
77 aio_req req; 115 aio_req req;
78 New (0, req, 1, aio_cb); 116 New (0, req, 1, aio_cb);
79 req->type = REQ_QUIT; 117 req->type = REQ_QUIT;
80 write (reqpipe[1], &req, sizeof (aio_req));
81}
82 118
83static void 119 send_req (req);
84send_req (aio_req req)
85{
86 nreqs++;
87 write (reqpipe[1], &req, sizeof (aio_req));
88} 120}
89 121
90static void 122static void
91read_write (pTHX_ 123read_write (pTHX_
92 int dowrite, int fd, off_t offset, size_t length, 124 int dowrite, int fd, off_t offset, size_t length,
93 SV *data, STRLEN dataoffset, SV*callback) 125 SV *data, STRLEN dataoffset, SV *callback)
94{ 126{
95 aio_req req; 127 aio_req req;
96 STRLEN svlen; 128 STRLEN svlen;
97 char *svptr = SvPV (data, svlen); 129 char *svptr = SvPV (data, svlen);
98 130
134 req->callback = SvREFCNT_inc (callback); 166 req->callback = SvREFCNT_inc (callback);
135 167
136 send_req (req); 168 send_req (req);
137} 169}
138 170
171static void
172poll_wait ()
173{
174 if (!nreqs)
175 return;
176
177 fd_set rfd;
178 FD_ZERO(&rfd);
179 FD_SET(respipe[0], &rfd);
180
181 select (respipe[0] + 1, &rfd, 0, 0, 0);
182}
183
139static int 184static int
140poll_cb (pTHX) 185poll_cb (pTHX)
141{ 186{
142 dSP; 187 dSP;
143 int count = 0; 188 int count = 0;
144 aio_req req; 189 aio_req req;
145 190
146 while (read (respipe[0], (void *)&req, sizeof (req)) == sizeof (req)) 191 while (read (respipe[0], (void *)&req, sizeof (req)) == sizeof (req))
147 { 192 {
193 nreqs--;
194
148 if (req->type == REQ_QUIT) 195 if (req->type == REQ_QUIT)
149 { 196 {
150 Safefree (req->thread); 197 Safefree (req->thread);
151 started--; 198 started--;
152 } 199 }
162 if (req->data) 209 if (req->data)
163 SvREFCNT_dec (req->data); 210 SvREFCNT_dec (req->data);
164 211
165 if (req->type == REQ_STAT || req->type == REQ_LSTAT || req->type == REQ_FSTAT) 212 if (req->type == REQ_STAT || req->type == REQ_LSTAT || req->type == REQ_FSTAT)
166 { 213 {
167 PL_laststype = req->type == REQ_LSTAT ? OP_LSTAT : OP_STAT; 214 PL_laststype = req->type == REQ_LSTAT ? OP_LSTAT : OP_STAT;
168 PL_laststatval = req->result; 215 PL_laststatval = req->result;
169 PL_statcache.st_dev = req->statdata->st_dev; 216 PL_statcache = *(req->statdata);
170 PL_statcache.st_ino = req->statdata->st_ino;
171 PL_statcache.st_mode = req->statdata->st_mode;
172 PL_statcache.st_nlink = req->statdata->st_nlink;
173 PL_statcache.st_uid = req->statdata->st_uid;
174 PL_statcache.st_gid = req->statdata->st_gid;
175 PL_statcache.st_rdev = req->statdata->st_rdev;
176 PL_statcache.st_size = req->statdata->st_size;
177 PL_statcache.st_atime = req->statdata->st_atime;
178 PL_statcache.st_mtime = req->statdata->st_mtime;
179 PL_statcache.st_ctime = req->statdata->st_ctime;
180 PL_statcache.st_blksize = req->statdata->st_blksize;
181 PL_statcache.st_blocks = req->statdata->st_blocks;
182 217
183 Safefree (req->statdata); 218 Safefree (req->statdata);
184 } 219 }
185 220
186 PUSHMARK (SP); 221 PUSHMARK (SP);
191 226
192 if (req->callback) 227 if (req->callback)
193 SvREFCNT_dec (req->callback); 228 SvREFCNT_dec (req->callback);
194 229
195 errno = errorno; 230 errno = errorno;
196 nreqs--;
197 count++; 231 count++;
198 } 232 }
199 233
200 Safefree (req); 234 Safefree (req);
201 } 235 }
202 236
237 if (qs)
238 send_reqs ();
239
203 return count; 240 return count;
204} 241}
205 242
206static sigset_t fullsigset; 243static sigset_t fullsigset;
207 244
208#undef errno 245#undef errno
246#include <linux/unistd.h>
247#include <linux/types.h>
248#include <sys/prctl.h>
249
250#if __alpha || __ia64 || __hppa || __v850__
251# define stat kernelstat
252# define stat64 kernelstat64
209#include <asm/unistd.h> 253# include <asm/stat.h>
254# undef stat
255# undef stat64
256#else
257# define kernelstat stat
258# define kernelstat64 stat64
259#endif
260
261#define COPY_STATDATA \
262 req->statdata->st_dev = statdata.st_dev; \
263 req->statdata->st_ino = statdata.st_ino; \
264 req->statdata->st_mode = statdata.st_mode; \
265 req->statdata->st_nlink = statdata.st_nlink; \
266 req->statdata->st_uid = statdata.st_uid; \
267 req->statdata->st_gid = statdata.st_gid; \
268 req->statdata->st_rdev = statdata.st_rdev; \
269 req->statdata->st_size = statdata.st_size; \
270 req->statdata->st_atime = statdata.st_atime; \
271 req->statdata->st_mtime = statdata.st_mtime; \
272 req->statdata->st_ctime = statdata.st_ctime; \
273 req->statdata->st_blksize = statdata.st_blksize; \
274 req->statdata->st_blocks = statdata.st_blocks; \
210 275
211static int 276static int
212aio_proc(void *thr_arg) 277aio_proc (void *thr_arg)
213{ 278{
214 aio_thread *thr = thr_arg; 279 aio_thread *thr = thr_arg;
215 aio_req req; 280 aio_req req;
216 int errno; 281 int errno;
217 282
218 /* this is very much x86 and kernel-specific :(:(:( */ 283 /* this is very much kernel-specific :(:(:( */
219 /* we rely on gcc's ability to create closures. */ 284 /* we rely on gcc's ability to create closures. */
220 _syscall3(int,read,int,fd,char *,buf,size_t,count) 285 _syscall3(__kernel_size_t, read , unsigned int, fd, char *, buf, __kernel_size_t, count)
221 _syscall3(int,write,int,fd,char *,buf,size_t,count) 286 _syscall3(__kernel_size_t, write, unsigned int, fd, char *, buf, __kernel_size_t, count)
222 287
223 _syscall3(int,open,char *,pathname,int,flags,mode_t,mode) 288 _syscall3(long, open, char *, pathname, int, flags, int, mode)
224 _syscall1(int,close,int,fd) 289 _syscall1(long, close, unsigned int, fd)
290 _syscall1(long, unlink, char *, filename);
291 _syscall1(long, fsync, unsigned int, fd);
225 292
226 _syscall5(int,pread64,int,fd,char *,buf,size_t,count,unsigned int,offset_lo,unsigned int,offset_hi) 293#ifndef __NR_fdatasync
227 _syscall5(int,pwrite64,int,fd,char *,buf,size_t,count,unsigned int,offset_lo,unsigned int,offset_hi) 294# define __NR_fdatasync __NR_fsync
295#endif
296 _syscall1(long, fdatasync, unsigned int, fd);
228 297
298#if BYTE_ORDER == LITTLE_ENDIAN
299# define LOFF_ARG(off) (off & 0xffffffff), (off >> 32)
300#elif BYTE_ORDER == BIG_ENDIAN
301# define LOFF_ARG(off) (off >> 32), (off & 0xffffffff)
302#endif
303
304#ifndef __NR_pread64
305# define __NR_pread64 __NR_pread
306# define __NR_pwrite64 __NR_write
307#endif
308 _syscall5(__kernel_ssize_t, pread64 , unsigned int, fd, char *, buf,
309 __kernel_size_t, count, unsigned int, offset_lh, unsigned int, offset_hl)
310 _syscall5(__kernel_ssize_t, pwrite64, unsigned int, fd, char *, buf,
311 __kernel_size_t, count, unsigned int, offset_lh, unsigned int, offset_hl)
312 _syscall4(long, readahead, unsigned int, fd, unsigned int, offset_lh, unsigned int, offset_hl, __kernel_size_t, count);
313
314#if __NR_stat64
229 _syscall2(int,stat64, const char *, filename, struct stat64 *, buf) 315 _syscall2(long, stat64 , const char *, filename, struct kernelstat64 *, buf)
230 _syscall2(int,lstat64, const char *, filename, struct stat64 *, buf) 316 _syscall2(long, lstat64, const char *, filename, struct kernelstat64 *, buf)
231 _syscall2(int,fstat64, int, fd, struct stat64 *, buf) 317 _syscall2(long, fstat64, int , fd , struct kernelstat64 *, buf)
318#elif __NR_stat
319 _syscall2(long, stat , const char *, filename, struct kernelstat *, buf)
320 _syscall2(long, lstat, const char *, filename, struct kernelstat *, buf)
321 _syscall2(long, fstat, int , fd , struct kernelstat *, buf)
322#else
323# error "neither stat64 nor stat defined"
324#endif
232 325
326 /* the following two calls might clobber errno */
233 sigprocmask (SIG_SETMASK, &fullsigset, 0); 327 sigprocmask (SIG_SETMASK, &fullsigset, 0);
328 prctl (PR_SET_PDEATHSIG, SIGKILL);
234 329
235 /* then loop */ 330 /* then loop */
236 while (read (reqpipe[0], (void *)&req, sizeof (req)) == sizeof (req)) 331 while (read (reqpipe[0], (void *)&req, sizeof (req)) == sizeof (req))
237 { 332 {
238 req->thread = thr; 333 req->thread = thr;
239 errno = 0; /* strictly unnecessary */ 334 errno = 0; /* strictly unnecessary */
240 335
241 if (req->type == REQ_READ) 336 switch (req->type)
242 req->result = pread64 (req->fd, req->dataptr, req->length, req->offset & 0xffffffff, req->offset >> 32);
243 else if (req->type == REQ_WRITE)
244 req->result = pwrite64(req->fd, req->dataptr, req->length, req->offset & 0xffffffff, req->offset >> 32);
245 else if (req->type == REQ_OPEN)
246 req->result = open (req->dataptr, req->fd, req->mode);
247 else if (req->type == REQ_CLOSE)
248 req->result = close (req->fd);
249 else if (req->type == REQ_STAT)
250 req->result = stat64 (req->dataptr, req->statdata);
251 else if (req->type == REQ_LSTAT)
252 req->result = lstat64 (req->dataptr, req->statdata);
253 else if (req->type == REQ_FSTAT)
254 req->result = fstat64 (req->fd, req->statdata);
255 else
256 { 337 {
338 case REQ_READ: req->result = pread64 (req->fd, req->dataptr, req->length, LOFF_ARG (req->offset)); break;
339 case REQ_WRITE: req->result = pwrite64 (req->fd, req->dataptr, req->length, LOFF_ARG (req->offset)); break;
340 case REQ_READAHEAD: req->result = readahead (req->fd, LOFF_ARG (req->offset), req->length); break;
341
342#if __NR_stat64
343 struct kernelstat64 statdata;
344 case REQ_STAT: req->result = stat64 (req->dataptr, &statdata); COPY_STATDATA; break;
345 case REQ_LSTAT: req->result = lstat64 (req->dataptr, &statdata); COPY_STATDATA; break;
346 case REQ_FSTAT: req->result = fstat64 (req->fd , &statdata); COPY_STATDATA; break;
347#else
348 struct kernelstat statdata;
349 case REQ_STAT: req->result = stat (req->dataptr, &statdata); COPY_STATDATA; break;
350 case REQ_LSTAT: req->result = lstat (req->dataptr, &statdata); COPY_STATDATA; break;
351 case REQ_FSTAT: req->result = fstat (req->fd , &statdata); COPY_STATDATA; break;
352#endif
353
354 case REQ_OPEN: req->result = open (req->dataptr, req->fd, req->mode); break;
355 case REQ_CLOSE: req->result = close (req->fd); break;
356 case REQ_UNLINK: req->result = unlink (req->dataptr); break;
357
358 case REQ_FSYNC: req->result = fsync (req->fd); break;
359 case REQ_FDATASYNC: req->result = fdatasync (req->fd); break;
360
361 case REQ_QUIT:
257 write (respipe[1], (void *)&req, sizeof (req)); 362 write (respipe[1], (void *)&req, sizeof (req));
363 return 0;
364
365 default:
366 req->result = ENOSYS;
258 break; 367 break;
259 } 368 }
260 369
261 req->errorno = errno; 370 req->errorno = errno;
262 write (respipe[1], (void *)&req, sizeof (req)); 371 write (respipe[1], (void *)&req, sizeof (req));
263 } 372 }
275 sigdelset (&fullsigset, SIGABRT); 384 sigdelset (&fullsigset, SIGABRT);
276 sigdelset (&fullsigset, SIGINT); 385 sigdelset (&fullsigset, SIGINT);
277 386
278 if (pipe (reqpipe) || pipe (respipe)) 387 if (pipe (reqpipe) || pipe (respipe))
279 croak ("unable to initialize request or result pipe"); 388 croak ("unable to initialize request or result pipe");
389
390 if (fcntl (reqpipe[1], F_SETFL, O_NONBLOCK))
391 croak ("cannot set result pipe to nonblocking mode");
280 392
281 if (fcntl (respipe[0], F_SETFL, O_NONBLOCK)) 393 if (fcntl (respipe[0], F_SETFL, O_NONBLOCK))
282 croak ("cannot set result pipe to nonblocking mode"); 394 croak ("cannot set result pipe to nonblocking mode");
283} 395}
284 396
293void 405void
294max_parallel(nthreads) 406max_parallel(nthreads)
295 int nthreads 407 int nthreads
296 PROTOTYPE: $ 408 PROTOTYPE: $
297 CODE: 409 CODE:
410{
298 int cur = started; 411 int cur = started;
299 while (cur > nthreads) 412 while (cur > nthreads)
300 { 413 {
301 end_thread (); 414 end_thread ();
302 cur--; 415 cur--;
303 } 416 }
304 417
305 while (started > nthreads) 418 while (started > nthreads)
306 { 419 {
307 fd_set rfd; 420 poll_wait ();
308 FD_ZERO(&rfd);
309 FD_SET(respipe[0], &rfd);
310
311 select (respipe[0] + 1, &rfd, 0, 0, 0);
312 poll_cb (aTHX); 421 poll_cb (aTHX);
313 } 422 }
423}
314 424
315void 425void
316aio_open(pathname,flags,mode,callback) 426aio_open(pathname,flags,mode,callback)
317 SV * pathname 427 SV * pathname
318 int flags 428 int flags
319 int mode 429 int mode
320 SV * callback 430 SV * callback
321 PROTOTYPE: $$$$ 431 PROTOTYPE: $$$$
322 CODE: 432 CODE:
433{
323 aio_req req; 434 aio_req req;
324 435
325 Newz (0, req, 1, aio_cb); 436 Newz (0, req, 1, aio_cb);
326 437
327 if (!req) 438 if (!req)
333 req->fd = flags; 444 req->fd = flags;
334 req->mode = mode; 445 req->mode = mode;
335 req->callback = SvREFCNT_inc (callback); 446 req->callback = SvREFCNT_inc (callback);
336 447
337 send_req (req); 448 send_req (req);
449}
338 450
339void 451void
340aio_close(fh,callback) 452aio_close(fh,callback)
341 InputStream fh 453 InputStream fh
342 SV * callback 454 SV * callback
343 PROTOTYPE: $$ 455 PROTOTYPE: $$
456 ALIAS:
457 aio_close = REQ_CLOSE
458 aio_fsync = REQ_FSYNC
459 aio_fdatasync = REQ_FDATASYNC
344 CODE: 460 CODE:
461{
345 aio_req req; 462 aio_req req;
346 463
347 Newz (0, req, 1, aio_cb); 464 Newz (0, req, 1, aio_cb);
348 465
349 if (!req) 466 if (!req)
350 croak ("out of memory during aio_req allocation"); 467 croak ("out of memory during aio_req allocation");
351 468
352 req->type = REQ_CLOSE; 469 req->type = ix;
353 req->fd = PerlIO_fileno (fh); 470 req->fd = PerlIO_fileno (fh);
354 req->callback = SvREFCNT_inc (callback); 471 req->callback = SvREFCNT_inc (callback);
355 472
356 send_req (req); 473 send_req (req);
474}
357 475
358void 476void
359aio_read(fh,offset,length,data,dataoffset,callback) 477aio_read(fh,offset,length,data,dataoffset,callback)
360 InputStream fh 478 InputStream fh
361 UV offset 479 UV offset
378 PROTOTYPE: $$$$$$ 496 PROTOTYPE: $$$$$$
379 CODE: 497 CODE:
380 read_write (aTHX_ 1, PerlIO_fileno (fh), offset, length, data, dataoffset, callback); 498 read_write (aTHX_ 1, PerlIO_fileno (fh), offset, length, data, dataoffset, callback);
381 499
382void 500void
501aio_readahead(fh,offset,length,callback)
502 InputStream fh
503 UV offset
504 IV length
505 SV * callback
506 PROTOTYPE: $$$$
507 CODE:
508{
509 aio_req req;
510
511 if (length < 0)
512 croak ("length must not be negative");
513
514 Newz (0, req, 1, aio_cb);
515
516 if (!req)
517 croak ("out of memory during aio_req allocation");
518
519 req->type = REQ_READAHEAD;
520 req->fd = PerlIO_fileno (fh);
521 req->offset = offset;
522 req->length = length;
523 req->callback = SvREFCNT_inc (callback);
524
525 send_req (req);
526}
527
528void
383aio_stat(fh_or_path,callback) 529aio_stat(fh_or_path,callback)
384 SV * fh_or_path 530 SV * fh_or_path
385 SV * callback 531 SV * callback
386 PROTOTYPE: $$ 532 PROTOTYPE: $$
387 ALIAS: 533 ALIAS:
388 aio_lstat = 1 534 aio_lstat = 1
389 CODE: 535 CODE:
536{
390 aio_req req; 537 aio_req req;
391 538
392 Newz (0, req, 1, aio_cb); 539 Newz (0, req, 1, aio_cb);
393 540
394 if (!req) 541 if (!req)
395 croak ("out of memory during aio_req allocation"); 542 croak ("out of memory during aio_req allocation");
396 543
397 New (0, req->statdata, 1, struct stat64); 544 New (0, req->statdata, 1, Stat_t);
398 545
399 if (!req->statdata) 546 if (!req->statdata)
400 croak ("out of memory during aio_req->statdata allocation"); 547 croak ("out of memory during aio_req->statdata allocation");
401 548
402 if (SvPOK (fh_or_path)) 549 if (SvPOK (fh_or_path))
412 } 559 }
413 560
414 req->callback = SvREFCNT_inc (callback); 561 req->callback = SvREFCNT_inc (callback);
415 562
416 send_req (req); 563 send_req (req);
564}
565
566void
567aio_unlink(pathname,callback)
568 SV * pathname
569 SV * callback
570 PROTOTYPE: $$
571 CODE:
572{
573 aio_req req;
574
575 Newz (0, req, 1, aio_cb);
576
577 if (!req)
578 croak ("out of memory during aio_req allocation");
579
580 req->type = REQ_UNLINK;
581 req->data = newSVsv (pathname);
582 req->dataptr = SvPV_nolen (req->data);
583 req->callback = SvREFCNT_inc (callback);
584
585 send_req (req);
586}
417 587
418int 588int
419poll_fileno() 589poll_fileno()
420 PROTOTYPE: 590 PROTOTYPE:
421 CODE: 591 CODE:
429 CODE: 599 CODE:
430 RETVAL = poll_cb (aTHX); 600 RETVAL = poll_cb (aTHX);
431 OUTPUT: 601 OUTPUT:
432 RETVAL 602 RETVAL
433 603
604void
605poll_wait()
606 PROTOTYPE:
607 CODE:
608 poll_wait ();
609
434int 610int
435nreqs() 611nreqs()
436 PROTOTYPE: 612 PROTOTYPE:
437 CODE: 613 CODE:
438 RETVAL = nreqs; 614 RETVAL = nreqs;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines