Re: Device Initialization.

Pawel S. Veselov (vps@unicorn.niimm.spb.su)
Tue, 19 Aug 1997 19:54:12 +0400 (MSD)


Hello, Mike!

On Tue, 19 Aug 1997, Mike Aizatsky wrote:

> Hi, all!
>
> I've looked at kernel sources, and I can't find a place where to
>put a code to automatically initialize my device at startup... Where's it?

Use:
__initfunc(int your_init(<init args>))
{
...
}

Init args are often "void" or "unsigned long kmem_start"

This is described in <linux/init.h>

Bye.

--
Your boyfriend takes chocolate from strangers.

--
    With best of best regards, Pawel S. Veselov (aka Black Angel)
       internet : vps@unicorn.niimm.spb.su ( mail,finger,talk )
                  fidonet : 2:5030/5.412
                schoolnet : 21:9000/412
                 Web page : http://www.niimm.spb.su/~vps/