关闭

关闭

关闭

封号提示

内容

首页 [USB相关资料].FileSystem.pdf

[USB相关资料].FileSystem.pdf

[USB相关资料].FileSystem.pdf

cutebear 2010-12-19 评分 0 浏览量 0 0 0 0 暂无简介 简介 举报

简介:本文档为《[USB相关资料].FileSystempdf》,可适用于IT/计算机领域,主题内容包含BuildingNTFileSystemDriversWindowsNTAGuideO'REILLYRajeevNagarWindowsNTFile符等。

BuildingNTFileSystemDriversWindowsNTAGuideO'REILLYRajeevNagarWindowsNTFileSystemInternalsThisbookisdedicatedto:Myparents,MayaandYogeshMywifeandbestfriend,PriyaOurbeautifuldaughters,SanaandRiaForitistheirfaith,support,andencouragementthatinspiresmetokeepstrivingTableofContentsPrefaceixIOverviewlWindowsNTSystemComponentsTheBasicsTheWindowsNTKernelTheWindowsNTExecutiveFileSystem,DriverDevelopmentWhatAreFileSystemDriversWhatAreFilterDriversCommonDriverDevelopmentIssuesWindowsNTObjectNameSpaceFilenameHandlingforNetworkRedirectorsStructuredDriverDevelopmentExceptionDispatchingSupportStructuredExceptionHandling(SEH)EventLoggingDriverSynchronizationMechanismsSupportingRoutines(RTLs)viiTableofContentsIITheManagersTheNTIOManagerTheNTIOSubsystemCommonDataStructuresIORequests:ADiscussionSystemBootSequenceTheNTVirtualMemoryManagerFunctionality'ProcessAddressSpacePhysicalMemoryManagementVirtualAddressSupportSharedMemoryandMemoryMappedFileSupportModifiedandMappedPageWriterPageFaultHandlingInteractionswithFileSystemDriversTheNTCacheManagerIFunctionalityFileStreamsVirtualBlockCachingCachingDuringReadandWriteOperationsCacheManagerInterfacesCacheManagerClientsSomeImportantDataStructuresFileSizeConsiderationsTheNTCacheManagerIICacheManagerStructuresInteractionwithClients(FileSystemsandNetworkRedirectors)CacheManagerInterfacesTheNTCacheManagerHIFlushingtheCacheTerminationofCachingMiscellaneousFileStreamManipulationFunctionsInteractionswiththeVMMInteractionswiththeIOManagerTheReadAheadModuleLazyWriteFunctionalityTableofContentsixIIITheDriversWritingaFileSystemDriverIFileSystemDesignRegistryInteractionDataStructuresDispatchRoutine:DriverEntryDispatchRoutine:CreateDispatchRoutine:ReadDispatchRoutine:WriteWritingAFileSystemDriverIIIORevisited:WhoCalledAsynchronousIOProcessingDispatchRoutine:FileInformationDispatchRoutine:DirectoryControlDispatchRoutine:CleanupDispatchRoutine:CloseWritingaFileSystemDriverHIHandlingFastIOCallbackExampleDispatchRoutine:FlushFileBuffersDispatchRoutine:VolumeInformationDispatchRoutine:ByteRangeLocksOpportunisticLockingDispatchRoutine:FileSystemandDeviceControlFileSystemRecognizersFilterDriversWhyUseFilterDriversBasicStepsinFilteringSomeDosandDon'tsinFilteringTableofContentsIVTheAppendixesAWindowsNTSystemServicesBMPRSupportCBuildingKernelModeDriversDDebuggingSupportERecommendedReadingsandReferencesEAdditionalSourcesforHelpIndexPrefaceOverthepastthreeyears,WindowsNThascometoberegardedasaserious,stable,viable,andhighlycompetitivealternativetomostothercommerciallyavailableoperatingsystemsItisalsooneoftheveryfewnewcommerciallyreleasedoperatingsystemsthathasbeendevelopedmoreorlessfromscratchinthelastyears,andcanclaimtohaveachievedasignificantamountofsuccessHowever,Microsofthasnotyetdocumented,inanysubstantialmanner,thegutsofthisincreasinglyimportantplatformThishasresultedinadearthofreliableinformationavailableontheinternalsoftheWindowsNToperatingsystemThisbookfocusesonexplainingtheinternalsoftheWindowsNTIOsubsystem,theWindowsNTCacheManager,andtheWindowsNTVirtualMemoryManagerInparticular,itfocusesonfilesystemdriverandfilterdriverimplementationfortheWindowsNTplatform,whichoftenrequiresdetailedinformationabouttheabovementionedcomponentsIntendedAudienceThisbookisintendedforthosewhohaveaneedtodayforunderstandingasignificantportionoftheWindowsNToperatingsystem,andalsoforthoseamonguswhosimplyarecuriousaboutwhatmakesWindowsNTtickTypically,thebookshouldbeinterestingandusefultoyouifyoudesignorimplementkernelmodesoftware,suchasfilesystemordevicedriversItshouldalsobeinterestingtothoseofyouwhoarestudyingorteachingoperatingsystemdesignandwishtounderstandtheWindowsNToperatingsystemalittlebitbetterFinally,ifyouareasystemadministratorwhoreallywantstoknowwhatitisthatyouhavejustspentthevastmajorityofyourannualbudgeton(operatingsystemlicenses,additionalthirdpartydriverlicensesforviruscheckingsoftware,andsoon),thisbookshouldhelpsatisfyyourcuriosityTheapproachtakeninwritingthisbookisthattheinformationprovidedshouldgiveyoumorethanwhatyoucangetfromanyotherdocumentationthatiscurrentlyavailableTherefore,IexpendalotofeffortdiscussingthewhysandhowsthatunderliethedesignandimplementationoftheWindowsNTIOsubsystem,VirtualMemoryManager,andCacheManagerForthoseofyouwhoneedtoimplementafilesystemorfilterdrivermodulerightthisminute,thereisasubstantialamountofcodeincludedthatshouldgetyouwellalongonyourwayAboveall,thisbookisintendedasaguideandreferencetoassistyouinunderstandingamajorportionoftheWindowsNToperatingsystembetterthanyoudotodayIhopeitwillhelptomakeyoumoreinformedabouttheoperatingsystemitself,whichinturnshouldhelpyouexploittheoperatingsystemprovidedfunctionalityinanoptimalmannerWindowsNTFileSystemInternalswaswrittenwithcertainassumptionsinmind:Iassumethatyouunderstandthefundamentalsofoperatingsystemsandtherefore,donotneedmetoexplainwhatanoperatingsystemisatthesametime,Idonotassumethatyouunderstandfilesystemtechnology(especiallyontheWindowsNTplatform)inanygreatdetail,althoughsuchunderstandingwillundoubtedlyhelpyouifandwhenyoudecidetodesignandimplementafilesystemyourselfIfurtherassumethatyouknowhowtodevelopprogramsusingahighlevellanguagesuchasCFinally,Iassumethatyouhavesomeinterestinthesubjectmatterofthisbookotherwise,IfindithardtoimaginewhyanyonewouldwanttosubjectthemselvestomorethanpagesofexcruciatinglydetailedinformationabouttheIOsubsystemandassociatedcomponentsBookContentsandOrganizationInordertodesignanddevelopcomplexsoftwaresuchasfilesystemdriversorotherkernelmodedrivers,itbecomesnecessarytofirstunderstandtheoperatingsystemenvironmentthoroughlyAtthesametime,IalwaysfinditusefultohavesamplecodetoplaywiththatcanassistmewhenIstartdesigninganddevelopingmyownsoftwaremodulesTherefore,IhaveorganizedthisbookalongthefollowinglinesPart:OverviewThispartofthebookprovidesyouwiththerequiredbackgroundmaterialthatisessentialtosuccessfullydesigninganddevelopingWindowsNTkernelmodedriversThisportionofthebookshouldbeofparticularinteresttothoseofyouPrefacexiiiwhointendtoactuallydevelopkernelmodesoftwarefortheWindowsNTplatformChapter,WindowsNTSystemComponentsThischapterprovidesanintroductiontothevariouscomponentsthattogetherconstitutethekernelmodeportionoftheWindowsNToperatingsystemTheoverallarchitectureoftheoperatingsystemisdiscussed,followedbyabriefdiscussionontheWindowsNTKernelandtheWindowsNTExecutivecomponentsChapter,FileSystemDriverDevelopmentThischapterprovidesanintroductiontofilesystemandfilterdriversSomecommondriverdevelopmentissuesthatarisewhendesigningfortheWindowsNTplatformarealsodiscussedhere,includingadiscussiononallocatingandfreeingkernelmemory,workingefficientlywithlinkedlistsofstructures,andusingUnicodestringsinyourdriverFinally,discussionsontheWindowsNTobjectnamespaceandtheMUPandMPRcomponents,whichareofinteresttodeveloperswhowishtodesignnetworkredirectors,arepresentedinthischapterChapter,StructuredDriverDevelopmentDesigningwellbehavedkernelmodesoftwareisthefocusofthischapterExceptiondispatchingsupportprovidedbytheoperatingsystemisdiscussedherethesectiononstructuredexceptionhandlingdiscusseshowyoucandeveloprobustkernelmodesoftwareThereisalsoadetaileddiscussionofthevarioussynchronizationprimitivesthatareavailabletokernelmodedevelopers,andwhichareessentialtowritingcorrectsystemsoftwareThesynchronizationprimitivesdiscussedhereincludespinlocks,dispatcherobjects,andreadwritelocksPart:TheManagersPartofthisbookdescribestheWindowsNTIOManager,theWindowsNTVirtualMemoryManager,andtheWindowsNTCacheManagerinconsiderabledetailfromtheperspectiveofadeveloperwhowishestodesignandimplementfilesystemdriversRegardlessofwhetherornotyoueventuallychoosetodesignandimplementkernelmodesoftwarefortheWindowsNTplatform,thesechaptersshouldbeusefultoyouandwillprovideyouwithadetailedunderstandingofsomeimportantandcomplexWindowsNToperatingsystemsoftwaremodulesChapter,TheNTIOManagerThischaptertakesadetailedlookattheWindowsNTIOManagerThecomponentsoftheIOsubsystem,aswellasthedesignprinciplesthatguidedthedevelopmentoftheIOManagerandIOsubsystemcomponents,arediscussedheresoistheconceptofthreadcontext,whichisextremelyxtvPrefaceimportantforkernelmodedriverdevelopersThischapteralsoprovidesadescriptionofsomeofthemoreimportantsystemdatastructuresandofhandlingsynchronousandasynchronousIOrequestsFinally,ahighleveloverviewoftheoperatingsystembootsequenceisincludedTheNTVirtualMemoryManagerTopicsdiscussedinthischapterincludethefunctionalityprovidedbytheVMM,processaddressspacelayout,physicalmemorymanagementandvirtualaddressspacemanipulationsupportprovidedbytheVirtualMemoryManager,andmemorymappedfilesupportThischapterprovidesanoverviewonhowpagefaulthandlingisprovidedbytheVMM,ontheworkingsofthemodifiedpagewriter,andfinally,ontheinteractionsoftheVirtualMemoryManagerwithfilesystemdriversChapter,TheNTCacheManagerIThischapterprovidesanintroductiontotheWindowsNTCacheManagerThefunctionalityprovidedbytheCacheManagerisdiscussedhere,followedbyadiscussiononhowcachedreadandwriteIOrequestsarejointlyhandledbytheIOManager,filesystemdrivers,andtheCacheManagerThevariousCacheManagerinterfacesareintroduced,followedbyadiscussionontheclientsthattypicallyrequestservicesfromtheWindowsNTCacheManagerSomeimportantdatastructuresrequiredforsuccessfulinteractionwiththeCacheManagerarealsodescribedFinally,thereisadiscussiononhowfilesizemanipulationcanbesuccessfullyperformedforcachedfilesChapter,TheNTCacheManagerIIThischapterprovidesanoverviewofhowtheWindowsNTCacheManagerusesinternaldatastructurestoprovidecachingservicestotherestofthesystemFilesystemdriversmustbecognizantofcertainrequirementsthattheymustfulfilltointeractsuccessfullywiththeCacheManagertheserequirementsarediscussedhereThischapteralsohasdetailsofeachofthevariousinterfaces(functioncalls)thatareavailabletoCacheManagerclientsChapters,TheNTCacheManagerIIITopicsdiscussedinthischapterincludeflushingthesystemcache,terminatingcachingforafile,descriptionsofcertainmiscellaneousCacheManagerprovidedfunctioncalls,andtheinteractionsoftheCacheManagerwiththeIOManager,andtheVirtualMemoryManagerFinally,readaheadanddelayedwritefunctionality,providedbytheWindowsNTCacheManager,isdiscussedPart:TheDriversPartdescribeshowtousetheinformationprovidedinPartsandofthisbookThisportionofthebookfocusesexclusivelyonactualdesignanddevelopPrefacexvmentoftwotypesofkernelmodedriversItcouldalsobeusedasareferenceinunderstandinghowthevariousWindowsNTfile

用户评论(0)

0/200

精彩专题

上传我的资料

每篇奖励 +1积分

资料评分:

/49
仅支持在线阅读

意见
反馈

立即扫码关注

爱问共享资料微信公众号

返回
顶部

举报
资料