Re: in kernel compilation of ext3

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

 



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 .



On Jan 24, 2008 6:21 PM, Onkar <onkar.n.m@xxxxxxxxx> wrote:
I compiled the kernel with CONFIG_EXT3_FS=y ; having done that now  , do these functions get called :

module_init(init_ext3_fs)
module_exit(exit_ext3_fs)



??

or  how does the file system register itself ???

i.e., from where does register_filesystem(&ext3_fs_type)
get called ????
Please give me some pointers ..


--
Thanks & regards,
Onkar Mahajan



--
Thanks & regards,
Onkar Mahajan

[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