lkml.org 
[lkml]   [1998]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.041 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site