📄 rf_script.h
字号:
/* * rf_script.h *//* * Adapted from raidSim by MCH */#ifndef _RF__RF_SCRIPT_H_#define _RF__RF_SCRIPT_H_#include "rf_types.h"typedef struct RF_Script_s RF_Script_t;struct RF_Script_s { long probability; /* the probability of selecting this action */ long action; /* the action type (read or write) */ long reqSize; /* the request size, or mean request size */ long alignment; /* the request alignment */ long local_prob; /* the probability that each access starts in the "local" region */ long local_size; /* the size of the local region, expressed as a pctg of the size of the array */ long local_offset; /* the offset into the array of the local region, again as pctg of array size */ char distribution; /* the request access size distribution */ int trace_fd; /* trace file descriptor */};int ShutdownScript(RF_Script_t *script);RF_Script_t *ConfigureScript(char *fileName, RF_SectorCount_t diskSize, long *numProc);RF_Script_t *SelectAction(RF_Script_t *script);int ConvertActionToAccess(RF_Raid_t *raidPtr, RF_Script_t *action, RF_SectorCount_t diskSize, char *op, int *reqSize, long *seekLoc, double *delay, int *async_flag);#endif /* !_RF__RF_SCRIPT_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -