Re: rand_initialize() -- bug??

Matthew Kirkwood (weejock@ferret.lmh.ox.ac.uk)
Tue, 13 Jan 1998 13:11:39 +0000 (GMT)


On Mon, 12 Jan 1998, C. Scott Ananian wrote:

> 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?

__initfunc only means that it gets put in a separate ELF segment so that
it can be freed after use. (The kernel does this after all of the
__initfunc routines have been called.) I think :)

Matthew.