代码拉取完成,页面将自动刷新
/*
* @Copyright:
* @Description:
* @Author: zhoujie
* @Date: 2020-08-14 23:08:07
* @LastEditors: zhoujie
* @LastEditTime: 2020-08-15 00:34:02
*/
/*
* Contributors: Youngjae Kim (youkim@cse.psu.edu)
* Aayush Gupta (axg354@cse.psu.edu)
*
* In case if you have any doubts or questions, kindly write to: youkim@cse.psu.edu
*
* Description: This is a header file for flash.c.
*
* Acknowledgement: We thank Jeong Uk Kang by sharing the initial version
* of sector-level FTL source code.
*
*/
#ifndef SSD_LAYOUT
#define SSD_LAYOUT
#include "type.h"
extern FILE *fp_erase;
int nand_init (_u32 blk_num, _u8 min_free_blk_num);
void nand_end ();
_u8 nand_page_read (_u32 psn, _u32 *lsns, _u8 isGC);
_u8 nand_page_write (_u32 psn, _u32 *lsns, _u8 isGC, int map_flag);
void nand_erase (_u32 blk_no);
void nand_invalidate (_u32 psn, _u32 lsn);
_u32 nand_get_free_blk(int);
void nand_stat(int);
void nand_stat_reset();
void nand_stat_print(FILE *outFP);
int nand_oob_read(_u32 psn);
_u32 free_blk_num;
_u32 free_blk_idx;
#endif
#define WEAR_LEVEL_THRESHOLD 35
void flush(int);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。