Where does register_driver reside?

Anna
2004-02-18
2004-02-18
  • Anna

    Anna - 2004-02-18

    I'm trying to write a driver for a cardbus card.
    I'm using a kernel (2.4.24) that has PCMCIA built into it.
    Since it's a cardbus card, I'm using the register_driver function of cb_enabler.c. It compiles fine, but depmod fails since it cannot find register_driver.
    I thought that would be compiled into the kernel?
    Or do I have to compile in cb_enabler.c into my driver?

    Where can I get more info on this? (I've read the programming howto.

    Any help would be great!

     
    • David Hinds

      David Hinds - 2004-02-18

      The cb_enabler module is only part of the pcmcia-cs drivers; it is not part of the kernel PCMCIA implementation.  With kernel PCMCIA, CardBus drivers are ordinary PCI drivers (with hotplug support).  It should not be hard to modify your driver for this because conceptually, the hotplug PCI interface is similar to what cb_enabler provides.  In the kernel source tree, look at Documentation/pci.txt for more information about writing a "new" PCI driver that supports hotplug.

      -- Dave

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks