Coda Distributed File System
Classes | Macros | Typedefs | Functions | Variables
rds.h File Reference
#include <stdio.h>
#include "rvm.h"
Include dependency graph for rds.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  intlist
 
struct  rds_stats_t
 

Macros

#define SUCCESS   0
 
#define ERVM_FAILED   -1
 
#define EBAD_LIST   -2
 
#define EBAD_SEGMENT_HDR   -3
 
#define EHEAP_VERSION_SKEW   -4
 
#define EHEAP_INIT   -5
 
#define EBAD_ARGS   -6
 
#define ECORRUPT   -7
 
#define EFREED_TWICE   -8
 
#define ENO_ROOM   -9
 
#define STARTSIZE   128 /* Initial size of list, may grow over time */
 
#define RDS_LOG(format, a...)
 

Typedefs

typedef struct intlist intentionList_t
 

Functions

int rds_zap_heap (char *DevName, rvm_offset_t DevLength, char *startAddr, rvm_length_t staticLength, rvm_length_t heapLength, unsigned long nlists, unsigned long chunkSize, int *err)
 
int rds_init_heap (char *base, rvm_length_t length, unsigned long chunkSize, unsigned long nlists, rvm_tid_t *tid, int *err)
 
int rds_load_heap (char *DevName, rvm_offset_t DevLength, char **staticAddr, int *err)
 
int rds_unload_heap (int *err)
 
int rds_start_heap (char *startAddr, int *err)
 
int rds_stop_heap (int *err)
 
int rds_prealloc (unsigned long size, unsigned long nblocks, rvm_tid_t *tid, int *err)
 
char * rds_malloc (unsigned long size, rvm_tid_t *tid, int *err)
 
int rds_free (char *addr, rvm_tid_t *tid, int *err)
 
int rds_maxblock (unsigned long size)
 
int rds_fake_free (char *addr, intentionList_t *list)
 
int rds_do_free (intentionList_t *list, rvm_mode_t mode)
 
int rds_print_stats (void)
 
int rds_clear_stats (int *err)
 
int rds_get_stats (rds_stats_t *stats)
 
int rds_trace_on (FILE *)
 
int rds_trace_off (void)
 
int rds_trace_dump_heap (void)
 

Variables

int rds_tracing
 
FILE * rds_tracing_file
 

Macro Definition Documentation

◆ EBAD_ARGS

#define EBAD_ARGS   -6

◆ EBAD_LIST

#define EBAD_LIST   -2

◆ EBAD_SEGMENT_HDR

#define EBAD_SEGMENT_HDR   -3

◆ ECORRUPT

#define ECORRUPT   -7

◆ EFREED_TWICE

#define EFREED_TWICE   -8

◆ EHEAP_INIT

#define EHEAP_INIT   -5

◆ EHEAP_VERSION_SKEW

#define EHEAP_VERSION_SKEW   -4

◆ ENO_ROOM

#define ENO_ROOM   -9

◆ ERVM_FAILED

#define ERVM_FAILED   -1

◆ RDS_LOG

#define RDS_LOG (   format,
  a... 
)
Value:
do { \
fprintf(rds_tracing_file, format, ##a); \
fflush(rds_tracing_file); \
} \
} while (0);
format
Definition: make_certs.py:99
FILE * rds_tracing_file
Definition: rds_stats.c:23
int rds_tracing
Definition: rds_stats.c:22

◆ STARTSIZE

#define STARTSIZE   128 /* Initial size of list, may grow over time */

◆ SUCCESS

#define SUCCESS   0

Typedef Documentation

◆ intentionList_t

typedef struct intlist intentionList_t

Function Documentation

◆ rds_clear_stats()

int rds_clear_stats ( int *  err)

◆ rds_do_free()

int rds_do_free ( intentionList_t list,
rvm_mode_t  mode 
)

◆ rds_fake_free()

int rds_fake_free ( char *  addr,
intentionList_t list 
)

◆ rds_free()

int rds_free ( char *  addr,
rvm_tid_t tid,
int *  err 
)

◆ rds_get_stats()

int rds_get_stats ( rds_stats_t stats)

◆ rds_init_heap()

int rds_init_heap ( char *  base,
rvm_length_t  length,
unsigned long  chunkSize,
unsigned long  nlists,
rvm_tid_t tid,
int *  err 
)

◆ rds_load_heap()

int rds_load_heap ( char *  DevName,
rvm_offset_t  DevLength,
char **  staticAddr,
int *  err 
)

◆ rds_malloc()

char * rds_malloc ( unsigned long  size,
rvm_tid_t tid,
int *  err 
)

◆ rds_maxblock()

int rds_maxblock ( unsigned long  size)

◆ rds_prealloc()

int rds_prealloc ( unsigned long  size,
unsigned long  nblocks,
rvm_tid_t tid,
int *  err 
)

◆ rds_print_stats()

int rds_print_stats ( void  )

◆ rds_start_heap()

int rds_start_heap ( char *  startAddr,
int *  err 
)

◆ rds_stop_heap()

int rds_stop_heap ( int *  err)

◆ rds_trace_dump_heap()

int rds_trace_dump_heap ( void  )

◆ rds_trace_off()

int rds_trace_off ( void  )

◆ rds_trace_on()

int rds_trace_on ( FILE *  file)

◆ rds_unload_heap()

int rds_unload_heap ( int *  err)

◆ rds_zap_heap()

int rds_zap_heap ( char *  DevName,
rvm_offset_t  DevLength,
char *  startAddr,
rvm_length_t  staticLength,
rvm_length_t  heapLength,
unsigned long  nlists,
unsigned long  chunkSize,
int *  err 
)

Variable Documentation

◆ rds_tracing

int rds_tracing
extern

◆ rds_tracing_file

FILE* rds_tracing_file
extern