Flash Translation Layer  1.0
Enumerations | Functions
module.h File Reference

creation and deletion of the module's interface More...

#include <stdint.h>
#include "flash.h"
Include dependency graph for module.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  { PAGE_FTL_MODULE = 0 }
 

Functions

int module_init (const int modnum, struct flash_device **, uint64_t flags)
 generic initializer for initialize the module More...
 
int module_exit (struct flash_device *)
 free resources in the flash module and submodule More...
 

Detailed Description

creation and deletion of the module's interface

Author
Gijun Oh
Version
0.2
Date
2021-09-22

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PAGE_FTL_MODULE 

page FTL number

Function Documentation

◆ module_exit()

int module_exit ( struct flash_device flash)

free resources in the flash module and submodule

Parameters
flashpointer of the flash device information
Returns
zero to success, error number to fail
Here is the call graph for this function:

◆ module_init()

int module_init ( const int  modnum,
struct flash_device **  __flash,
uint64_t  flags 
)

generic initializer for initialize the module

Parameters
modnummodule number described in the include/module.h
__flashdouble pointer of the flash device information
flagsflags for flash and submodule
Returns
zero to success, error number to fail
Note
This function allocates the memory to the __flash. And you must not change this function!!
Here is the call graph for this function: