Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
aio.h File Reference
#include <linux/list.h>
#include <linux/workqueue.h>
#include <linux/aio_abi.h>
#include <linux/uio.h>
#include <linux/rcupdate.h>
#include <linux/atomic.h>

Go to the source code of this file.

Data Structures

struct  kiocb
 
struct  aio_ring
 
struct  aio_ring_info
 
struct  kioctx
 

Macros

#define AIO_MAXSEGS   4
 
#define AIO_KIOGRP_NR_ATOMIC   8
 
#define KIOCB_C_CANCELLED   0x01
 
#define KIOCB_C_COMPLETE   0x02
 
#define KIOCB_SYNC_KEY   (~0U)
 
#define KIF_KICKED   1
 
#define KIF_CANCELLED   2
 
#define kiocbTryLock(iocb)   test_and_set_bit(KIF_LOCKED, &(iocb)->ki_flags)
 
#define kiocbTryKick(iocb)   test_and_set_bit(KIF_KICKED, &(iocb)->ki_flags)
 
#define kiocbSetLocked(iocb)   set_bit(KIF_LOCKED, &(iocb)->ki_flags)
 
#define kiocbSetKicked(iocb)   set_bit(KIF_KICKED, &(iocb)->ki_flags)
 
#define kiocbSetCancelled(iocb)   set_bit(KIF_CANCELLED, &(iocb)->ki_flags)
 
#define kiocbClearLocked(iocb)   clear_bit(KIF_LOCKED, &(iocb)->ki_flags)
 
#define kiocbClearKicked(iocb)   clear_bit(KIF_KICKED, &(iocb)->ki_flags)
 
#define kiocbClearCancelled(iocb)   clear_bit(KIF_CANCELLED, &(iocb)->ki_flags)
 
#define kiocbIsLocked(iocb)   test_bit(KIF_LOCKED, &(iocb)->ki_flags)
 
#define kiocbIsKicked(iocb)   test_bit(KIF_KICKED, &(iocb)->ki_flags)
 
#define kiocbIsCancelled(iocb)   test_bit(KIF_CANCELLED, &(iocb)->ki_flags)
 
#define AIO_RING_MAGIC   0xa10a10a1
 
#define AIO_RING_COMPAT_FEATURES   1
 
#define AIO_RING_INCOMPAT_FEATURES   0
 
#define AIO_RING_PAGES   8
 

Variables

unsigned aio_max_size
 
unsigned long aio_nr
 
unsigned long aio_max_nr
 

Macro Definition Documentation

#define AIO_KIOGRP_NR_ATOMIC   8

Definition at line 13 of file aio.h.

#define AIO_MAXSEGS   4

Definition at line 12 of file aio.h.

#define AIO_RING_COMPAT_FEATURES   1

Definition at line 145 of file aio.h.

#define AIO_RING_INCOMPAT_FEATURES   0

Definition at line 146 of file aio.h.

#define AIO_RING_MAGIC   0xa10a10a1

Definition at line 144 of file aio.h.

#define AIO_RING_PAGES   8

Definition at line 162 of file aio.h.

#define KIF_CANCELLED   2

Definition at line 36 of file aio.h.

#define KIF_KICKED   1

Definition at line 35 of file aio.h.

#define KIOCB_C_CANCELLED   0x01

Definition at line 23 of file aio.h.

#define KIOCB_C_COMPLETE   0x02

Definition at line 24 of file aio.h.

#define KIOCB_SYNC_KEY   (~0U)

Definition at line 26 of file aio.h.

#define kiocbClearCancelled (   iocb)    clear_bit(KIF_CANCELLED, &(iocb)->ki_flags)

Definition at line 47 of file aio.h.

#define kiocbClearKicked (   iocb)    clear_bit(KIF_KICKED, &(iocb)->ki_flags)

Definition at line 46 of file aio.h.

#define kiocbClearLocked (   iocb)    clear_bit(KIF_LOCKED, &(iocb)->ki_flags)

Definition at line 45 of file aio.h.

#define kiocbIsCancelled (   iocb)    test_bit(KIF_CANCELLED, &(iocb)->ki_flags)

Definition at line 51 of file aio.h.

#define kiocbIsKicked (   iocb)    test_bit(KIF_KICKED, &(iocb)->ki_flags)

Definition at line 50 of file aio.h.

#define kiocbIsLocked (   iocb)    test_bit(KIF_LOCKED, &(iocb)->ki_flags)

Definition at line 49 of file aio.h.

#define kiocbSetCancelled (   iocb)    set_bit(KIF_CANCELLED, &(iocb)->ki_flags)

Definition at line 43 of file aio.h.

#define kiocbSetKicked (   iocb)    set_bit(KIF_KICKED, &(iocb)->ki_flags)

Definition at line 42 of file aio.h.

#define kiocbSetLocked (   iocb)    set_bit(KIF_LOCKED, &(iocb)->ki_flags)

Definition at line 41 of file aio.h.

#define kiocbTryKick (   iocb)    test_and_set_bit(KIF_KICKED, &(iocb)->ki_flags)

Definition at line 39 of file aio.h.

#define kiocbTryLock (   iocb)    test_and_set_bit(KIF_LOCKED, &(iocb)->ki_flags)

Definition at line 38 of file aio.h.

Variable Documentation

unsigned long aio_max_nr

Definition at line 51 of file aio.c.

unsigned aio_max_size
unsigned long aio_nr

Definition at line 50 of file aio.c.