extfiltr.h

来自「Linux下msys公司提供的doc2000的驱动源代码」· C头文件 代码 · 共 35 行

H
35
字号
#ifndef __EXTFILTR__H__#define __EXTFILTR__H__/* ExtFilterInit(TheDiskInfo*diskInfo) Init the filter. Called in init module.ExtFilterRelease Release the filter. Called in cleanup module, after ExtFilterRemovePartition loop.ExtFilterAddPartition(unsigned short wPart,unsigned long dwStartSector,unsigned long dwSectors) Start the filter on the partitition. Should be called when partition table changed and in init module. wPart is minor number of the partition, dwStartSector is offset of the partition from begin of device, as gendisk->hd_struct->start_sect; dwSectors is number of sectors in partitionExtFilterRemovePartition(unsigned short wPart) Stop and cleanup the filter for the partition. Should be called when partition table changed (before ExtFilterAddPartition) and in cleanup module. wPart is minor number of the partitionExtFilter(unsigned short wPart,unsigned char*pBuff,unsigned long dwSector,unsigned long dwSectors) Check before write. Should be called before TffsWrite. wPart is minor number of the partition, pBuff is write data, dwSector is number sector in the partition, dwSectors is number of sector to write*/#ifdef TFFS_USE_EXT_FILTERvoid ExtFilterInit(TheDiskInfo*diskInfo);void ExtFilterRelease(void);void ExtFilterAddPartition(unsigned short wPart,unsigned long dwStartSector,unsigned long dwSectors);void ExtFilterRemovePartition(unsigned short wPart);void ExtFilter(unsigned short wPart,unsigned char*pBuff,unsigned long dwSector,unsigned long dwSectors);#else# define ExtFilterInit(diskInfo)# define ExtFilterRelease()# define ExtFilterAddPartition(wPart,dwStartSector,dwSectors)# define ExtFilterRemovePartition(wPart)# define ExtFilter(wPart,pBuff,dwSector,dwSectors)#endif#endif /* __EXTFILTR__H__ */

⌨️ 快捷键说明

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