Thanks
-Matt
It isn't actually dumped. /dev/random and /dev/urandom have major number
1, which means that they are part of the MEM_MAJOR device. That is
registered in chr_dev_init() in driver/char/mem.c
Opening a device with major number 1 results in a call to memory_open()
, which is a case statement, which references a struct, and then calls
the open function in that struct. That struct is either random_fops or
urandom_fops, which are both in drivers/char/random.c.
An operation on that devices calls on of the functions referenced in
that struct (random_read(), urandom_read()).
Igmar
Igmar,
Thank you very much. That is the reply I was looking for.
-Matt