Defines | Functions

src/ftl.h File Reference

#include "types.h"
Include dependency graph for ftl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PAGE_MASK   ((1<<(config_nand.bit_page_per_blk))-1)
#define BLK_F_PA(pa)   ((pa)>>(config_nand.bit_page_per_blk))
#define PN_F_PA(pa)   ((pa) & PAGE_MASK)
#define MAKE_PA(blk, pn)   (((blk)<<(config_nand.bit_page_per_blk)) + (pn))

Functions

int ftl_open ()
void ftl_close ()
_t_size ftl_read (_t_sect lsn, _t_size size)
_t_size ftl_write (_t_sect lsn, _t_size size)

Define Documentation

#define BLK_F_PA (   pa  )     ((pa)>>(config_nand.bit_page_per_blk))

Definition at line 7 of file ftl.h.

#define MAKE_PA (   blk,
  pn 
)    (((blk)<<(config_nand.bit_page_per_blk)) + (pn))

Definition at line 9 of file ftl.h.

#define PAGE_MASK   ((1<<(config_nand.bit_page_per_blk))-1)

Definition at line 6 of file ftl.h.

#define PN_F_PA (   pa  )     ((pa) & PAGE_MASK)

Definition at line 8 of file ftl.h.


Function Documentation

void ftl_close (  ) 

Definition at line 102 of file ftlsimple.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int ftl_open (  ) 

Definition at line 112 of file ftlsimple.c.

Here is the call graph for this function:

Here is the caller graph for this function:

_t_size ftl_read ( _t_sect  lsn,
_t_size  size 
)

Definition at line 15 of file ftlsimple.c.

Here is the call graph for this function:

_t_size ftl_write ( _t_sect  lsn,
_t_size  size 
)

Definition at line 37 of file ftlsimple.c.

Here is the call graph for this function:

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines