Flash Translation Layer  1.0
Data Structures | Enumerations | Functions
flash.h File Reference

generic flash control interfaces' header More...

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

Go to the source code of this file.

Data Structures

struct  flash_device
 contain the flash device information More...
 
struct  flash_operations
 generic interface for communicate with the flash More...
 

Enumerations

enum  { FLASH_DEFAULT_FLAG = 0 }
 flags related on the flash and submodule More...
 

Functions

int flash_module_init (struct flash_device **, uint64_t flags)
 initialize the flash module More...
 
int flash_module_exit (struct flash_device *)
 free resources in the flash module More...
 

Detailed Description

generic flash control interfaces' header

Author
Gijun Oh
Version
0.1
Date
2021-09-22

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

flags related on the flash and submodule

Enumerator
FLASH_DEFAULT_FLAG 

flash default flags

Function Documentation

◆ flash_module_exit()

int flash_module_exit ( struct flash_device flash)

free resources in the flash module

Parameters
flashpointer of the flash device information
Returns
zero to success, error number to fail

◆ flash_module_init()

int flash_module_init ( struct flash_device **  __flash,
uint64_t  flags 
)

initialize the flash module

Parameters
__flashdouble pointer of the flash device information
flagsflags for flash module and submodule
Returns
zero to success, error number to fail
Note
This function allocates the memory to the __flash
Here is the call graph for this function: