-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathftl_func.h
More file actions
25 lines (19 loc) · 730 Bytes
/
ftl_func.h
File metadata and controls
25 lines (19 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef __BLOOMFUNC__
#define __BLOOMFUNC__
#include <stdint.h>
#include "ftl_data.h"
void bloom_init();
void bloom_destroy();
void bloom_write(uint32_t, uint32_t, char *);
void bloom_read(uint32_t);
void bloom_gc(uint32_t *, int *, int *, int *, int *, int *, Page *, int, int *);
void bloom_rebloom(uint32_t *, int *, int *, int *, int *, int *, int *);
void print_stats(char *, char *);
static inline uint32_t hashing_key(uint32_t);
int compare(const void *, const void *);
void shuffle(uint32_t *, int);
void make_test_set(uint32_t *, uint32_t *, char *, char *, uint8_t, uint32_t);
void print_byte_as_bit(unsigned char *, size_t);
int lba_compare(const void *, const void *);
void debugging(int, int, int, int);
#endif