Flash Translation Layer  1.0
Functions
flash.c File Reference

generic flash control interfaces More...

#include <stdlib.h>
#include <errno.h>
#include "include/module.h"
#include "include/flash.h"
#include "include/log.h"
Include dependency graph for flash.c:

Functions

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

Detailed Description

generic flash control interfaces

Author
Gijun Oh
Version
0.1
Date
2021-09-22

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: