关闭

关闭

关闭

封号提示

内容

首页 [USB相关资料].FileSystem

[USB相关资料].FileSystem.pdf

[USB相关资料].FileSystem

cutebear
2010-12-19 0人阅读 0 0 0 暂无简介 举报

简介:本文档为《[USB相关资料].FileSystempdf》,可适用于IT/计算机领域

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)

关闭

新课改视野下建构高中语文教学实验成果报告(32KB)

抱歉,积分不足下载失败,请稍后再试!

提示

试读已结束,如需要继续阅读或者下载,敬请购买!

评分:

/49

意见
反馈

立即扫码关注

爱问共享资料微信公众号

返回
顶部

举报
资料