1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
|
.\" Copyright (C) 2003 Free Software Foundation, Inc.
.\" This file is distributed according to the GNU General Public License.
.\" See the file COPYING in the top level source directory for details.
.\"
.\" Japanese Version Copyright (c) 2003 Akihiro MOTOKI, all rights reserved.
.\" Translated Mon Mar 8 2003 by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\"
.\"WORD: completion queue λ塼
.\"
.\" .de Sh \" Subsection
.\" .br
.\" .if t .Sp
.\" .ne 5
.\" .PP
.\" \fB\\$1\fP
.\" .PP
.\" ..
.\" .de Sp \" Vertical space (when we can't use .PP)
.\" .if t .sp .5v
.\" .if n .sp
.\" ..
.\" .de Ip \" List item
.\" .br
.\" .ie \\n(.$>=3 .ne \\$3
.\" .el .ne 3
.\" .IP "\\$1" \\$2
.\" ..
.TH IO_GETEVENTS 2 2008-07-04 "Linux" "Linux Programmer's Manual"
.SH ̾
io_getevents \- λ塼Ʊ I/O ٥Ȥɤ߽Ф
.SH
.nf
.\" .ad l
.\" .hy 0
.B #include <linux/time.h>
.B #include <libaio.h>
.\" #include <linux/aio.h>
.sp
.\" .HP 19
.BI "int io_getevents(aio_context_t " ctx_id ", long " min_nr ", long " nr ,
.BI " struct io_event *" events \
", struct timespec *" timeout );
.\" .ad
.\" .hy
.sp
\fI\-laio\fP ȥ롣
.fi
.SH
.PP
.BR io_getevents ()
ϡʤȤ \fImin_nr\fP Ρ \fInr\fP Ĥ
٥Ȥ \fIctx_id\fP ǻꤵ줿 AIO (Ʊ I/O) ƥȤ
λ塼ɤ߽ФȤ롣
\fItimeout\fP ϥ٥ɤ߽ФԤ֤ιפꤹ롣
ॢȤ NULL ꤷ硢ʤȤ \fImin_nr\fP ĤΥ٥Ȥ
ɤ߽ФޤԤĤȤ̣롣
ʲˤ:
\fItimeout\fP ŪʻǤ롣
NULL Ǥʤ繹뤳Ȥ⤢ꤨ롣
ƤӽФưߤ롣
.SH ֤
ȡ
.BR io_getevents ()
ɤ߽Ф٥ȿ֤
٥ȤĤɤ߽Фʤä 0 ֤졢
\fItimeout\fP ֤вᤷ \fImin_nr\fP ̤֤ͤ롣
Ի֤ͤˤĤƤϡաפȤ뤳ȡ
.SH 顼
.TP
.B EFAULT
\fIevents\fP ޤ \fItimeout\fP ̵ʥݥǤ롣
.TP
.B EINVAL
\fIctx_id\fP ̵Ǥ롣⤷ϡ\fImin_nr\fP ޤ \fInr\fP
ϰϳͤǤ롣
.TP
.B EINTR
ʥϥɥˤޤ줿
.BR signal (7)
ȡ
.TP
.B ENOSYS
.BR io_getevents ()
ΥƥǤϼƤʤ
.SH С
.PP
Ʊ I/O ƥࡦ 2002ǯ8 Linux 2.5 ǽо줷
.SH
.PP
.BR io_getevents ()
Linux ͭǤꡢܿꤷץ
Ѥ٤ǤϤʤ
.SH
glibc ϤΥƥॳѤΥåѡؿƤʤ
.I libaio
.BR io_getevents ()
ѤƤåѡؿϡ顼Τ̾ C 饤֥
ˤäƤ餺顼ξˤΥ顼ֹ
(顼ƤͤΰĤˤ) ֤ͤȤʤ롣
.BR syscall (2)
ͳǥƥॳưȡ֤ͤ̾Υ顼Τδ
äƤΤȤʤꡢ顼ξˤ \-1 ֤ꡢ
.I errno
˥顼 () ͤꤵ롣
.SH Ϣ
.PP
.BR io_cancel (2),
.BR io_destroy (2),
.BR io_setup (2),
.BR io_submit (2),
.BR time (7)
.\" .SH
.\" .PP
.\" Ʊ I/O ƥࡦ Benjamin LaHaise
.\" .SH
.\" Kent Yoder.
|