FreeBSD ZFS
The Zettabyte File System
Data Structures | Typedefs | Functions

sys/bptree.h File Reference

#include <sys/spa.h>
#include <sys/zio.h>
Include dependency graph for bptree.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  bptree_phys
struct  bptree_entry_phys

Typedefs

typedef struct bptree_phys bptree_phys_t
typedef struct bptree_entry_phys bptree_entry_phys_t
typedef int bptree_itor_t (void *arg, const blkptr_t *bp, dmu_tx_t *tx)

Functions

uint64_t bptree_alloc (objset_t *os, dmu_tx_t *tx)
int bptree_free (objset_t *os, uint64_t obj, dmu_tx_t *tx)
void bptree_add (objset_t *os, uint64_t obj, blkptr_t *bp, uint64_t birth_txg, uint64_t bytes, uint64_t comp, uint64_t uncomp, dmu_tx_t *tx)
int bptree_iterate (objset_t *os, uint64_t obj, boolean_t free, bptree_itor_t func, void *arg, dmu_tx_t *tx)

Typedef Documentation

typedef int bptree_itor_t(void *arg, const blkptr_t *bp, dmu_tx_t *tx)

Definition at line 49 of file bptree.h.

typedef struct bptree_phys bptree_phys_t

Function Documentation

void bptree_add ( objset_t os,
uint64_t  obj,
blkptr_t bp,
uint64_t  birth_txg,
uint64_t  bytes,
uint64_t  comp,
uint64_t  uncomp,
dmu_tx_t tx 
)

Definition at line 108 of file bptree.c.

uint64_t bptree_alloc ( objset_t os,
dmu_tx_t tx 
)

Definition at line 63 of file bptree.c.

int bptree_free ( objset_t os,
uint64_t  obj,
dmu_tx_t tx 
)

Definition at line 91 of file bptree.c.

int bptree_iterate ( objset_t os,
uint64_t  obj,
boolean_t  free,
bptree_itor_t  func,
void *  arg,
dmu_tx_t tx 
)

Definition at line 159 of file bptree.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines