Rules for Filters (both Legacy and Mini).ppt


文档分类:医学/心理学 | 页数:约17页 举报非法文档有奖
1/17
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/17
文档列表 文档介绍
RulesforFilters (bothLegacyandMini)1©: SynchronizationDon’tissuefilesystemcallswhileholdingalock(FastMutex,EResource,PushLock)MaycausethesystemtodeadlockEspeciallywithotherfilterspresent2©: SynchronizationMinimizethesynchronizationyourfilterusesLeadingcauseofperformancedegradationWhenpossibleusedshared/exclusivesemanticsPushLocksareefficient,veryhardtodebugadeadlock3©: TopLevelIrpDon’tissuefilesystemcallsifIoGetTopLevelIrp()returnsanon-NULLvalueMaycausethesystemtodeadlockThefailurestatusreturnedfromafilesystemoperationwhileprocessingarecursiveIOoperation(TopLevelIrpreturnsnon-NULLvalue)willbepropagatedbacktotheTopLeveloperationFltGetVolumeInformation()example4©: AccessingUserBuffersIfaMDLisdefinedalwaysuseittogetasystemaddressforthebufferMmGetSystemAddressForMdlSafe()Iftheoperationisnotbuffered,esseswithtry/exceptFLTFL_CALLBACK_DATA_SYSTEM_BUFFERAllFastIOoperationsmustbetreatedasifmethodneitherbufferingwasused5©: PostOperationCallbacksPostOperationcallbackroutinesmaybecalledatDPCIRQLCodepostOperationroutineasiftheyarealwayscalledatDPClevelDon’tissueFileIOoperationsCan’pletionProcessingWhenSafe()6©: PostOperationCallbacksCannotcallFltGetXxxContext()pletionProcessingWhenSafe()CancallFltReleaseContext()atDPClevel7©: PostOperationCallbacksCallingFltGetFileNameInformation()fromapostOperationcallback:()pletionProcessingWhenSafe()TopLevelIrpmaystillbesetbyfilesystem8©

Rules for Filters (both Legacy and Mini) 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数17
  • 收藏数0 收藏
  • 顶次数0
  • 上传人陈潇睡不醒
  • 文件大小61 KB
  • 时间2020-01-11