Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
dm-io.c File Reference
#include "dm.h"
#include <linux/device-mapper.h>
#include <linux/bio.h>
#include <linux/mempool.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/dm-io.h>

Go to the source code of this file.

Data Structures

struct  dm_io_client
 
struct  io
 
struct  dpages
 

Macros

#define DM_MSG_PREFIX   "io"
 
#define DM_IO_MAX_REGIONS   BITS_PER_LONG
 
#define MIN_IOS   16
 
#define MIN_BIOS   16
 

Functions

struct io __attribute__ ((aligned(DM_IO_MAX_REGIONS)))
 
struct dm_io_clientdm_io_client_create (void)
 
 EXPORT_SYMBOL (dm_io_client_create)
 
void dm_io_client_destroy (struct dm_io_client *client)
 
 EXPORT_SYMBOL (dm_io_client_destroy)
 
int dm_io (struct dm_io_request *io_req, unsigned num_regions, struct dm_io_region *where, unsigned long *sync_error_bits)
 
 EXPORT_SYMBOL (dm_io)
 
int __init dm_io_init (void)
 
void dm_io_exit (void)
 

Variables

unsigned long error_bits
 
atomic_t count
 
struct task_structsleeper
 
struct dm_io_clientclient
 
io_notify_fn callback
 
voidcontext
 
voidvma_invalidate_address
 
unsigned long vma_invalidate_size
 
struct dpages __attribute__
 

Macro Definition Documentation

#define DM_IO_MAX_REGIONS   BITS_PER_LONG

Definition at line 21 of file dm-io.c.

#define DM_MSG_PREFIX   "io"

Definition at line 19 of file dm-io.c.

#define MIN_BIOS   16

Definition at line 23 of file dm-io.c.

#define MIN_IOS   16

Definition at line 22 of file dm-io.c.

Function Documentation

int dm_io ( struct dm_io_request *  io_req,
unsigned  num_regions,
struct dm_io_region *  where,
unsigned long sync_error_bits 
)

Definition at line 480 of file dm-io.c.

struct dm_io_client* dm_io_client_create ( void  )
read

Definition at line 50 of file dm-io.c.

void dm_io_client_destroy ( struct dm_io_client client)

Definition at line 76 of file dm-io.c.

void dm_io_exit ( void  )

Definition at line 508 of file dm-io.c.

int __init dm_io_init ( void  )

Definition at line 499 of file dm-io.c.

EXPORT_SYMBOL ( dm_io_client_create  )
EXPORT_SYMBOL ( dm_io_client_destroy  )
EXPORT_SYMBOL ( dm_io  )

Variable Documentation

eeh_pe_traverse - Traverse PEs in the specified PHB : root PE

: extra parameter to callback

The function is used to traverse the specified PE and its child PEs. The traversing is to be terminated once the callback returns something other than NULL, or no more PEs to be traversed.

eeh_pe_dev_traverse - Traverse the devices from the PE : EEH PE

: extra parameter to callback

The function is used to traverse the devices of the specified PE and its child PEs.

Definition at line 48 of file dm-io.c.

Definition at line 47 of file dm-io.c.

Definition at line 49 of file dm-io.c.

atomic_t count

Definition at line 45 of file dm-io.c.

unsigned long error_bits

Definition at line 44 of file dm-io.c.

struct task_struct* sleeper

Definition at line 46 of file dm-io.c.

void* vma_invalidate_address

Definition at line 50 of file dm-io.c.

unsigned long vma_invalidate_size

Definition at line 51 of file dm-io.c.