Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
aio.c File Reference
#include <unistd.h>
#include <sched.h>
#include <signal.h>
#include <errno.h>
#include <sys/time.h>
#include <asm/unistd.h>
#include <aio.h>
#include <init.h>
#include <kern_util.h>
#include <os.h>

Go to the source code of this file.

Data Structures

struct  aio_thread_req
 

Macros

#define DEFAULT_24_AIO   1
 

Functions

 __uml_setup ("aio=2.4", set_aio_24,"aio=2.4\n"" This is used to force UML to use 2.4-style AIO even when 2.6 AIO is\n"" available. 2.4 AIO is a single thread that handles one request at a\n"" time, synchronously. 2.6 AIO is a thread which uses the 2.6 AIO \n"" interface to handle an arbitrary number of pending requests. 2.6 AIO \n"" is not available in tt mode, on 2.4 hosts, or when UML is built with\n"" /usr/include/linux/aio_abi.h not available. Many distributions don't\n"" include aio_abi.h, so you will need to copy it from a kernel tree to\n"" your /usr/include/linux in order to build an AIO-capable UML\n\n")
 
 __initcall (init_aio)
 
 __uml_exitcall (exit_aio)
 
int submit_aio (enum aio_type type, int io_fd, char *buf, int len, unsigned long long offset, int reply_fd, struct aio_context *aio)
 

Macro Definition Documentation

#define DEFAULT_24_AIO   1

Definition at line 289 of file aio.c.

Function Documentation

__initcall ( init_aio  )
__uml_exitcall ( exit_aio  )
__uml_setup ( aio = 2.4", set_aio_24,"aio=2.4\n""    This is used to force UML to use 2.4-style AIO even when 2.6 AIO is\n""    available.  2.4 AIO is a single thread that handles one request at a\n""    time,
synchronously.2.6 AIO is a thread which uses the 2.6 AIO\n""interface to handle an arbitrary number of pending requests.2.6 AIO\n""is not available in tt  mode,
on 2.4  hosts,
or when UML is built with\n""/usr/include/linux/aio_abi.h not available.Many distributions don't\n""include aio_abi.  h,
so you will need to copy it from a kernel tree to\n""your/usr/include/linux in order to build an AIO-capable UML\n\n  
)
int submit_aio ( enum aio_type  type,
int  io_fd,
char buf,
int  len,
unsigned long long  offset,
int  reply_fd,
struct aio_context aio 
)

Definition at line 382 of file aio.c.