Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Functions
dm-block-manager.h File Reference
#include <linux/types.h>
#include <linux/blkdev.h>

Go to the source code of this file.

Data Structures

struct  dm_block_validator
 

Typedefs

typedef uint64_t dm_block_t
 

Functions

dm_block_t dm_block_location (struct dm_block *b)
 
voiddm_block_data (struct dm_block *b)
 
struct dm_block_managerdm_block_manager_create (struct block_device *bdev, unsigned block_size, unsigned cache_size, unsigned max_held_per_thread)
 
void dm_block_manager_destroy (struct dm_block_manager *bm)
 
unsigned dm_bm_block_size (struct dm_block_manager *bm)
 
dm_block_t dm_bm_nr_blocks (struct dm_block_manager *bm)
 
int dm_bm_read_lock (struct dm_block_manager *bm, dm_block_t b, struct dm_block_validator *v, struct dm_block **result)
 
int dm_bm_write_lock (struct dm_block_manager *bm, dm_block_t b, struct dm_block_validator *v, struct dm_block **result)
 
int dm_bm_read_try_lock (struct dm_block_manager *bm, dm_block_t b, struct dm_block_validator *v, struct dm_block **result)
 
int dm_bm_write_lock_zero (struct dm_block_manager *bm, dm_block_t b, struct dm_block_validator *v, struct dm_block **result)
 
int dm_bm_unlock (struct dm_block *b)
 
int dm_bm_flush_and_unlock (struct dm_block_manager *bm, struct dm_block *superblock)
 
void dm_bm_set_read_only (struct dm_block_manager *bm)
 
u32 dm_bm_checksum (const void *data, size_t len, u32 init_xor)
 

Typedef Documentation

Definition at line 18 of file dm-block-manager.h.

Function Documentation

void* dm_block_data ( struct dm_block *  b)

Definition at line 334 of file dm-block-manager.c.

dm_block_t dm_block_location ( struct dm_block *  b)

Definition at line 328 of file dm-block-manager.c.

struct dm_block_manager* dm_block_manager_create ( struct block_device bdev,
unsigned  block_size,
unsigned  cache_size,
unsigned  max_held_per_thread 
)
read

Definition at line 370 of file dm-block-manager.c.

void dm_block_manager_destroy ( struct dm_block_manager bm)

Definition at line 403 of file dm-block-manager.c.

unsigned dm_bm_block_size ( struct dm_block_manager bm)

Definition at line 410 of file dm-block-manager.c.

u32 dm_bm_checksum ( const void data,
size_t  len,
u32  init_xor 
)

Definition at line 621 of file dm-block-manager.c.

int dm_bm_flush_and_unlock ( struct dm_block_manager bm,
struct dm_block *  superblock 
)

Definition at line 596 of file dm-block-manager.c.

dm_block_t dm_bm_nr_blocks ( struct dm_block_manager bm)

Definition at line 416 of file dm-block-manager.c.

int dm_bm_read_lock ( struct dm_block_manager bm,
dm_block_t  b,
struct dm_block_validator v,
struct dm_block **  result 
)

Definition at line 446 of file dm-block-manager.c.

int dm_bm_read_try_lock ( struct dm_block_manager bm,
dm_block_t  b,
struct dm_block_validator v,
struct dm_block **  result 
)

Definition at line 515 of file dm-block-manager.c.

void dm_bm_set_read_only ( struct dm_block_manager bm)

Definition at line 615 of file dm-block-manager.c.

int dm_bm_unlock ( struct dm_block *  b)

Definition at line 579 of file dm-block-manager.c.

int dm_bm_write_lock ( struct dm_block_manager bm,
dm_block_t  b,
struct dm_block_validator v,
struct dm_block **  result 
)

Definition at line 479 of file dm-block-manager.c.

int dm_bm_write_lock_zero ( struct dm_block_manager bm,
dm_block_t  b,
struct dm_block_validator v,
struct dm_block **  result 
)

Definition at line 548 of file dm-block-manager.c.