rddebug.h

来自「如何制作ramdisk的一个好资料」· C头文件 代码 · 共 95 行

H
95
字号
/**************************************************************
;*                                                            *
;*	      INSTUTITE FOR INFORMATION INDUSTRY              *
;*                 RDDEBUG HEADER -- RAMDISK                  *
;*		       September 23, 1998		      *
;*                                                            *
;*************************************************************/
#ifndef _RD_DEBUG_H
#define _RD_DEBUG_H

/*************************************************************
Fuction : RD_showFSInfo
	Show the file system information of the drive
**************************************************************/
void RD_showFSInfo(void);

/*************************************************************
Function: RD_showFreeMemSize
Description:
	print the size of free memory blocks in RAMDisk memory pool
Input:
	NONE
Output:
	NONE
**************************************************************/
void RD_showFreeMemSize(void);
void RD_showFreeMemSize_r(void);

/*************************************************************
Function: RD_showFileHandleBlockList
Description:
	print the block list of a file handle
Input:
	fhandle - the opened target file
Output:
	NONE
**************************************************************/
void RD_showFileHandleBlockList(int fhandle);
void RD_showFileHandleBlockList_r(int fhandle);

/*************************************************************
Function: RD_showFileBlockList
Description:
	print the block list of a file
Input:
	name - the target filename
Output:
	NONE
**************************************************************/
void RD_showFileBlockList(unsigned char *name);

/*************************************************************
Fuction: RD_blockDump
	Dump a block
Input:
	block - pointer to the target block 
	start - begin dumping from this entry (0 is the 1st)
	end - end dumping at this entry (N is the last)
Output:
**************************************************************/
void RD_blockDump(struct diskBlock *block, int start, int end);

/*************************************************************
Fuction : RD_showHandle
	Show all file handle that is currently being used
**************************************************************/
void RD_showHandle(void);

/*************************************************************
Fuction : RD_showCompressionStatus
	Show the compression status of the RAMDisk
**************************************************************/
void RD_showCompressionStatus(void);

/*************************************************************
Fuction : RD_pause
	Wait till users to press a key before continuing
**************************************************************/
void RD_pause(void);

/*************************************************************
Function: RD_showFileHandleBufferInfo
Description:
	print the buffer info of a file handle
Input:
	fhandle - the opened target file
Output:
	NONE
**************************************************************/
void RD_showFileHandleBufferInfo(int fhandle);


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?