public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [HW_RNG] How to use generic rng in kernel space
@ 2006-08-01 12:09 moreau francis
  2006-08-01 13:29 ` Alan Cox
  2006-08-01 20:49 ` Michael Buesch
  0 siblings, 2 replies; 10+ messages in thread
From: moreau francis @ 2006-08-01 12:09 UTC (permalink / raw)
  To: mb; +Cc: linux-kernel

Hi

I developped a HW RNG for a custom board and several
other drivers are using it through a special entry I made.
I was planning to move the code in order to use the generic
the RNG layer but I encounter an issue.

Currently it seems not possible for a driver to use HW RNG,
because there's no entry point for that. Is that something
deliberate ?

Another question about the implementation. If O_NONBLOCK
flag is passed when opening /dev/hw_random, how does the
read method ensure that the caller won't sleep since it calls
mutex_lock_interruptible() function unconditiannaly ? I must
miss something but don't know what...

Thanks

Francis




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-08-09 10:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-01 12:09 [HW_RNG] How to use generic rng in kernel space moreau francis
2006-08-01 13:29 ` Alan Cox
2006-08-01 13:28   ` Re : " moreau francis
2006-08-01 20:49 ` Michael Buesch
2006-08-04 13:00   ` Re : " moreau francis
2006-08-04 21:08     ` Michael Buesch
2006-08-05  1:44       ` Jeff Garzik
2006-08-08 15:39       ` Re : " moreau francis
2006-08-08 17:34         ` Michael Buesch
2006-08-09 10:02           ` Re : " moreau francis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox