read logic for page ftl
More...
#include "include/page.h"
#include "include/log.h"
#include <errno.h>
#include <stdlib.h>
#include <string.h>
read logic for page ftl
- Author
- Gijun Oh
- Version
- 0.2
- Date
- 2021-09-22
◆ page_ftl_read()
the core logic for reading the request to the device.
- Parameters
-
pgftl | pointer of the page FTL structure |
request | user'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
◆ page_ftl_read_end_rq()
read's end request function
- Parameters
-
request | the request which is submitted before |