Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dm-btree.h File Reference
#include "dm-block-manager.h"

Go to the source code of this file.

Data Structures

struct  dm_btree_value_type
 
struct  dm_btree_info
 

Macros

#define __dm_written_to_disk(x)
 
#define __dm_reads_from_disk(x)
 
#define __dm_bless_for_disk(x)
 
#define __dm_unbless_for_disk(x)
 

Functions

int dm_btree_empty (struct dm_btree_info *info, dm_block_t *root)
 
int dm_btree_del (struct dm_btree_info *info, dm_block_t root)
 
int dm_btree_lookup (struct dm_btree_info *info, dm_block_t root, uint64_t *keys, void *value_le)
 
int dm_btree_insert (struct dm_btree_info *info, dm_block_t root, uint64_t *keys, void *value, dm_block_t *new_root) __dm_written_to_disk(value)
 
int dm_btree_insert_notify (struct dm_btree_info *info, dm_block_t root, uint64_t *keys, void *value, dm_block_t *new_root, int *inserted) __dm_written_to_disk(value)
 
int dm_btree_remove (struct dm_btree_info *info, dm_block_t root, uint64_t *keys, dm_block_t *new_root)
 
int dm_btree_find_highest_key (struct dm_btree_info *info, dm_block_t root, uint64_t *result_keys)
 

Macro Definition Documentation

#define __dm_bless_for_disk (   x)

Definition at line 26 of file dm-btree.h.

#define __dm_reads_from_disk (   x)

Definition at line 25 of file dm-btree.h.

#define __dm_unbless_for_disk (   x)

Definition at line 27 of file dm-btree.h.

#define __dm_written_to_disk (   x)

Definition at line 24 of file dm-btree.h.

Function Documentation

int dm_btree_del ( struct dm_btree_info info,
dm_block_t  root 
)

Definition at line 233 of file dm-btree.c.

int dm_btree_empty ( struct dm_btree_info info,
dm_block_t root 
)

Definition at line 121 of file dm-btree.c.

int dm_btree_find_highest_key ( struct dm_btree_info info,
dm_block_t  root,
uint64_t result_keys 
)

Definition at line 781 of file dm-btree.c.

int dm_btree_insert ( struct dm_btree_info info,
dm_block_t  root,
uint64_t keys,
void value,
dm_block_t new_root 
)

Definition at line 733 of file dm-btree.c.

int dm_btree_insert_notify ( struct dm_btree_info info,
dm_block_t  root,
uint64_t keys,
void value,
dm_block_t new_root,
int inserted 
)

Definition at line 741 of file dm-btree.c.

int dm_btree_lookup ( struct dm_btree_info info,
dm_block_t  root,
uint64_t keys,
void value_le 
)

Definition at line 327 of file dm-btree.c.

int dm_btree_remove ( struct dm_btree_info info,
dm_block_t  root,
uint64_t keys,
dm_block_t new_root 
)

Definition at line 553 of file dm-btree-remove.c.