Re: in kernel compilation of ext3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Jan 24, 2008 9:06 PM, Onkar <onkar.n.m@xxxxxxxxx> wrote:
> In one of the driver i saw this :
>
> static int __init hamachi_init (void){
> /* when a module, this is printed whether or not devices are found in probe
> */
> #ifdef MODULE
>         printk(version);
> #endif
>          return pci_register_driver(&hamachi_driver);
> }
>
>
> IMHO in any case the  register function for the class always gets called
> wheather  its through the module or be it directly. And i observed the path
> to call register is always through init function . Seniors please guide me .
>

You may wanna have a look at this:

http://geek.vtnet.ca/doc/initcall/index.html

-- 
Invent and fit; have fits and reinvent!
We toast the Lisp programmer who pens his thoughts within nests of parentheses.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux