Messages in this thread | | | Date | Tue, 13 Jan 1998 08:41:29 +0100 | From | Henrik Storner <> | Subject | Re: rand_initialize() -- bug?? |
| |
C. Scott Ananian <cananian@lcs.mit.edu> writes:
>Does anyone know why rand_initialize() is called twice? >chr_dev_init() in drivers/char/mem.c contains a call to rand_initialize(), >and rand_initialize() itself (in drivers/char/random.c) is an __initfunc, >so it is called automagically upon initialization. >It seems like one of these calls is redundant. Am I wrong?
My understanding of __initfunc is that this only changes the ELF section which the code goes into - it does not invoke some magic calling scheme. Looking at linux/init.h and asm/init.h, I think I'm right :-)
So, no bug.
-- Henrik Storner
| |