⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 extfiltr.h

📁 Linux下msys公司提供的doc2000的驱动源代码
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -