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

read logic for page ftl More...

#include "include/page.h"
#include "include/log.h"
#include <errno.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for page-read.c:

Functions

static void page_ftl_read_end_rq (struct device_request *read_rq)
 read's end request function More...
 
ssize_t page_ftl_read (struct page_ftl *pgftl, struct device_request *request)
 the core logic for reading the request to the device. More...
 

Detailed Description

read logic for page ftl

Author
Gijun Oh
Version
0.2
Date
2021-09-22

Function Documentation

◆ page_ftl_read()

ssize_t page_ftl_read ( struct page_ftl pgftl,
struct device_request request 
)

the core logic for reading the request to the device.

Parameters
pgftlpointer of the page FTL structure
requestuser's request pointer
Returns
reading data size. a negative number means fail to read.
Note
if paddr.lpn doesn't exist, this function returns the buffer filled 0 value.

< YOU MUST TAKE CARE OF THIS LINE

Here is the call graph for this function:

◆ page_ftl_read_end_rq()

static void page_ftl_read_end_rq ( struct device_request read_rq)
static

read's end request function

Parameters
requestthe request which is submitted before
Here is the call graph for this function: