Flash Translation Layer  1.0
Functions
page-map.c File Reference

manage the mapping information More...

#include "include/bits.h"
#include "include/page.h"
#include "include/device.h"
#include "include/log.h"
#include <errno.h>
Include dependency graph for page-map.c:

Functions

struct device_address page_ftl_get_free_page (struct page_ftl *pgftl)
 get page from the segment More...
 
int page_ftl_update_map (struct page_ftl *pgftl, uint64_t sector, uint32_t ppn)
 update the mapping information More...
 

Detailed Description

manage the mapping information

Author
Gijun Oh
Version
0.2
Date
2021-10-05

Function Documentation

◆ page_ftl_get_free_page()

struct device_address page_ftl_get_free_page ( struct page_ftl pgftl)

get page from the segment

Parameters
pgftlpointer of the page-ftl structure
Returns
free space's device address
Here is the call graph for this function:

◆ page_ftl_update_map()

int page_ftl_update_map ( struct page_ftl pgftl,
uint64_t  sector,
uint32_t  ppn 
)

update the mapping information

Parameters
pgftlpointer of the page FTL structure
sectorlogical address for mapping table
ppnphysical address for mapping table
Returns
0 to success, negative number to fail
Here is the call graph for this function: