H A D | aio.c | 12 #include <aio.h> 23 struct aio_context *aio; member in struct:aio_thread_req 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) do_aio() 70 .aio_data = (unsigned long) aio, do_aio() 192 reply = ((struct aio_thread_reply) { .data = req.aio, not_aio_thread() 194 err = write(req.aio->reply_fd, &reply, sizeof(reply)); not_aio_thread() 197 "fd = %d, err = %d\n", req.aio->reply_fd, errno); not_aio_thread() 266 unsigned long long offset, struct aio_context *aio) submit_aio_26() 271 err = do_aio(ctx, type, io_fd, buf, len, offset, aio); submit_aio_26() 273 reply = ((struct aio_thread_reply) { .data = aio, submit_aio_26() 275 err = write(aio->reply_fd, &reply, sizeof(reply)); submit_aio_26() 279 "fd = %d, err = %d\n", aio->reply_fd, -err); submit_aio_26() 295 unsigned long long offset, struct aio_context *aio) submit_aio_26() 310 __uml_setup("aio=2.4", set_aio_24, 311 "aio=2.4\n" 362 unsigned long long offset, struct aio_context *aio) submit_aio_24() 369 .aio = aio, submit_aio_24() 383 struct aio_context *aio) submit_aio() 385 aio->reply_fd = reply_fd; submit_aio() 387 return submit_aio_24(type, io_fd, buf, len, offset, aio); submit_aio() 389 return submit_aio_26(type, io_fd, buf, len, offset, aio); submit_aio() 66 do_aio(aio_context_t ctx, enum aio_type type, int fd, char *buf, int len, unsigned long long offset, struct aio_context *aio) do_aio() argument 265 submit_aio_26(enum aio_type type, int io_fd, char *buf, int len, unsigned long long offset, struct aio_context *aio) submit_aio_26() argument 294 submit_aio_26(enum aio_type type, int io_fd, char *buf, int len, unsigned long long offset, struct aio_context *aio) submit_aio_26() argument 361 submit_aio_24(enum aio_type type, int io_fd, char *buf, int len, unsigned long long offset, struct aio_context *aio) submit_aio_24() argument 381 submit_aio(enum aio_type type, int io_fd, char *buf, int len, unsigned long long offset, int reply_fd, struct aio_context *aio) submit_aio() argument
|