您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 项目/工程管理 > 12linux内核模块编程
TheLinuxKernelModuleProgrammingGuidePeterJaySalzmanMichaelBurianOriPomerantzCopyright©2001PeterJaySalzman2005−05−26ver2.6.1TheLinuxKernelModuleProgrammingGuideisafreebook;youmayreproduceand/ormodifyitunderthetermsoftheOpenSoftwareLicense,version1.1.Youcanobtainacopyofthislicenseat@dirac.org.ThiswillallowforthemergingofupdatesandprovideconsistentrevisionstotheLinuxcommunity.Ifyoupublishordistributethisbookcommercially,donations,royalties,and/orprintedcopiesaregreatlyappreciatedbytheauthorandtheLinuxDocumentationProject(LDP).ContributinginthiswayshowsyoursupportforfreesoftwareandtheLDP.Ifyouhavequestionsorcomments,pleasecontacttheaddressabove.TableofContentsForeword..............................................................................................................................................................11.Authorship...........................................................................................................................................12.VersioningandNotes...........................................................................................................................13.Acknowledgements..............................................................................................................................1Chapter1.Introduction......................................................................................................................................21.1.WhatIsAKernelModule?...............................................................................................................21.2.HowDoModulesGetIntoTheKernel?...........................................................................................21.2.1.BeforeWeBegin.....................................................................................................................3Chapter2.HelloWorld......................................................................................................................................52.1.Hello,World(part1):TheSimplestModule....................................................................................52.1.1.Introducingprintk().................................................................................................................62.2.CompilingKernelModules..............................................................................................................62.3.HelloWorld(part2)..........................................................................................................................72.4.HelloWorld(part3):The__initand__exitMacros........................................................................82.5.HelloWorld(part4):LicensingandModuleDocumentation..........................................................92.6.PassingCommandLineArgumentstoaModule...........................................................................112.7.ModulesSpanningMultipleFiles...................................................................................................142.8.Buildingmodulesforaprecompiledkernel....................................................................................15Chapter3.Preliminaries..................................................................................................................................173.1.ModulesvsPrograms......................................................................................................................173.1.1.Howmodulesbeginandend.................................................................................................173.1.2.Functionsavailabletomodules.............................................................................................173.1.3.UserSpacevsKernelSpace..................................................................................................183.1.4.NameSpace...........................................................................................................................183.1.5.Codespace.............................................................................................................................193.1.6.DeviceDrivers............................................
本文标题:12linux内核模块编程
链接地址:https://www.777doc.com/doc-5264480 .html