Flash Translation Layer  1.0
module.h
Go to the documentation of this file.
1 
8 #ifndef MODULE_H
9 #define MODULE_H
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 #include <stdint.h>
16 
17 #include "flash.h"
18 
19 enum { PAGE_FTL_MODULE = 0 ,
20 };
21 
22 int module_init(const int modnum, struct flash_device **, uint64_t flags);
23 int module_exit(struct flash_device *);
24 
25 #ifdef __cplusplus
26 }
27 #endif
28 #endif
int module_exit(struct flash_device *)
free resources in the flash module and submodule
Definition: module.c:66
Definition: module.h:19
int module_init(const int modnum, struct flash_device **, uint64_t flags)
generic initializer for initialize the module
Definition: module.c:41
generic flash control interfaces&#39; header
contain the flash device information
Definition: flash.h:31