Flash Translation Layer  1.0
Data Structures | Macros | Functions
bluedbm.h File Reference

bluedbm module's header file More...

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

Go to the source code of this file.

Data Structures

struct  bluedbm_dma_t
 structure for manage the dma More...
 
struct  bluedbm
 structure for manage the bluedbm device More...
 

Macros

#define BLUEDBM_NR_BLOCKS   (4096)
 

Functions

int bluedbm_open (struct device *, const char *name, int flags)
 open the bluedbm based device More...
 
ssize_t bluedbm_write (struct device *, struct device_request *)
 write to the flash board More...
 
ssize_t bluedbm_read (struct device *, struct device_request *)
 read from the flash board More...
 
int bluedbm_erase (struct device *, struct device_request *)
 erase a segment More...
 
int bluedbm_close (struct device *)
 close the bluedbm More...
 
int bluedbm_device_init (struct device *, uint64_t flags)
 initialize the device and bluedbm module More...
 
int bluedbm_device_exit (struct device *)
 deallocate the device module More...
 

Detailed Description

bluedbm module's header file

Author
Gijun Oh
Version
0.2
Date
2021-10-20

Macro Definition Documentation

◆ BLUEDBM_NR_BLOCKS

#define BLUEDBM_NR_BLOCKS   (4096)

number of blocks(segments) in the flash board

Function Documentation

◆ bluedbm_close()

int bluedbm_close ( struct device dev)

close the bluedbm

Parameters
devpointer of the device structure
Returns
0 for success, negative value for fail

◆ bluedbm_device_exit()

int bluedbm_device_exit ( struct device dev)

deallocate the device module

Parameters
devpointer of the device structure
Returns
0 for success, negative value for fail
Here is the call graph for this function:

◆ bluedbm_device_init()

int bluedbm_device_init ( struct device dev,
uint64_t  flags 
)

initialize the device and bluedbm module

Parameters
devpointer of the device structure
flagsflags for bluedbm and device
Returns
0 for success, negative value for fail
Here is the call graph for this function:

◆ bluedbm_erase()

int bluedbm_erase ( struct device dev,
struct device_request request 
)

erase a segment

Parameters
devpointer of the device structure
requestpointer of the device request structure
Returns
0 for success, negative value for fail
Here is the call graph for this function:

◆ bluedbm_open()

int bluedbm_open ( struct device dev,
const char *  name,
int  flags 
)

open the bluedbm based device

Parameters
devpointer of the device structure
namethis does not use in this module
flagsopen flags for this module
Returns
0 for success, negative value to fail
Here is the call graph for this function:

◆ bluedbm_read()

ssize_t bluedbm_read ( struct device dev,
struct device_request request 
)

read from the flash board

Parameters
devpointer of the device structure
requestpointer of the device request structure
Returns
read size (bytes)
Here is the call graph for this function:

◆ bluedbm_write()

ssize_t bluedbm_write ( struct device dev,
struct device_request request 
)

write to the flash board

Parameters
devpointer of the device structure
requestpointer of the device request structure
Returns
written size (bytes)
Here is the call graph for this function: