Skip to contentSkip to conversation

loading modules

DISCUSSION blesson paul 2 participants 2 messages Feb 19, 2002

lore
Share & tools
lore
#0 lore raw

Hi all
I am a newbie to Kernel world. When I looked into the file system files,
I found that the initialization function ( where the file system is registered) is �init_filesystem� where filesystem can be coda, vfat etc. As far as know, the initialization function is
int init_module(void)
Then how kernel takes different initialization functions. I want to know
whether my know how is wrong or not

Thanking in advance
regards
Blesson Paul

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

#1 lore raw
Quoted 4 lines · blesson paul

Hi all
I am a newbie to Kernel world. When I looked into the file system files, I found that the initialization function ( where the file system is registered) is "init_filesystem" where filesystem can be coda, vfat etc. As far as know, the initialization function is int init_module(void)
Then how kernel takes different initialization functions. I want to know whether my know how is wrong or not

you have something like (function parameters supressed for simplifcation):

/* Kernel calls this in your module */
init_module()
{

do_something();
init_filesystem(...);

return whatever;
}

So the entry point for every kind of module, including filesystem modules, is init_module(), you don't implement init_filesystem in the module, you call it to let the kernel know you want to register a filesystem.

Quoted 4 lines

Thanking in advance
regards
Blesson Paul

Cheers,

Alex