Lines Matching full:aio
12 #include <aio.h>
23 struct aio_context *aio; member
30 * If we have the headers, we are going to build with AIO enabled.
31 * If we don't have aio in libc, we define the necessary stubs here.
67 int len, unsigned long long offset, struct aio_context *aio) in do_aio() argument
70 .aio_data = (unsigned long) aio, in do_aio()
192 reply = ((struct aio_thread_reply) { .data = req.aio, in not_aio_thread()
194 err = write(req.aio->reply_fd, &reply, sizeof(reply)); in not_aio_thread()
197 "fd = %d, err = %d\n", req.aio->reply_fd, errno); in not_aio_thread()
236 printk(UM_KERN_INFO "2.6 host AIO support not used - falling back to " in init_aio_24()
261 printk(UM_KERN_INFO "Using 2.6 host AIO\n"); in init_aio_26()
266 unsigned long long offset, struct aio_context *aio) in submit_aio_26() argument
271 err = do_aio(ctx, type, io_fd, buf, len, offset, aio); in submit_aio_26()
273 reply = ((struct aio_thread_reply) { .data = aio, in submit_aio_26()
275 err = write(aio->reply_fd, &reply, sizeof(reply)); in submit_aio_26()
279 "fd = %d, err = %d\n", aio->reply_fd, -err); in submit_aio_26()
295 unsigned long long offset, struct aio_context *aio) in submit_aio_26() argument
310 __uml_setup("aio=2.4", set_aio_24,
311 "aio=2.4\n"
312 " This is used to force UML to use 2.4-style AIO even when 2.6 AIO is\n"
313 " available. 2.4 AIO is a single thread that handles one request at a\n"
314 " time, synchronously. 2.6 AIO is a thread which uses the 2.6 AIO \n"
315 " interface to handle an arbitrary number of pending requests. 2.6 AIO \n"
319 " your /usr/include/linux in order to build an AIO-capable UML\n\n"
329 printk(UM_KERN_INFO "2.6 AIO not supported on the " in init_aio()
330 "host - reverting to 2.4 AIO\n"); in init_aio()
362 unsigned long long offset, struct aio_context *aio) in submit_aio_24() argument
369 .aio = aio, in submit_aio_24()
383 struct aio_context *aio) in submit_aio() argument
385 aio->reply_fd = reply_fd; in submit_aio()
387 return submit_aio_24(type, io_fd, buf, len, offset, aio); in submit_aio()
389 return submit_aio_26(type, io_fd, buf, len, offset, aio); in submit_aio()