ia64/xen-unstable

view tools/libaio/man/io_getevents.1 @ 10736:2937703f0ed0

Added blktap support. Includes kernel driver (enabled as CONFIG_XEN_BLKDEV_TAP=y) and userspace tools. The userspace deamon (blktapctrl) is enabled by default when xend is activated. For further information on using and configuring blktap see tools/blktap/README.
author jchesterfield@dhcp92.uk.xensource.com
date Thu Jul 13 10:13:26 2006 +0100 (2006-07-13)
parents
children
line source
1 ./"/* io_getevents:
2 ./" * Attempts to read at least min_nr events and up to nr events from
3 ./" * the completion queue for the aio_context specified by ctx_id. May
4 ./" * fail with -EINVAL if ctx_id is invalid, if min_nr is out of range,
5 ./" * if nr is out of range, if when is out of range. May fail with
6 ./" * -EFAULT if any of the memory specified to is invalid. May return
7 ./" * 0 or < min_nr if no events are available and the timeout specified
8 ./" * by when has elapsed, where when == NULL specifies an infinite
9 ./" * timeout. Note that the timeout pointed to by when is relative and
10 ./" * will be updated if not NULL and the operation blocks. Will fail
11 ./" * with -ENOSYS if not implemented.
12 ./" */
13 ./"asmlinkage long sys_io_getevents(io_context_t ctx_id,
14 ./" long min_nr,
15 ./" long nr,
16 ./" struct io_event *events,
17 ./" struct timespec *timeout)
18 ./"
19 .TH io_getevents 2 2002-09-03 "Linux 2.4" "Linux AIO"
20 .SH NAME
21 io_getevents \- read resulting events from io requests
22 .SH SYNOPSIS
23 .B #include <errno.h>
24 .br
25 .B #include <libaio.h>
26 .sp
27 .BI "int io_getevents(io_context_t " ctx ", long " min_nr ", long " nr ", struct io_events *" events "[], struct timespec *" timeout ");"