random: Support epoll() and select()
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 21 Mar 2017 18:10:37 +0000 (14:10 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 21 Mar 2017 18:29:06 +0000 (14:29 -0400)
commit1610010fd59fb270c8740698c3187e0a0458d6dc
treeea3af2d07c47b6a51001f977f40b72f1a57f3063
parenta98db982ca25451f59465925a9bc6dc1adf6ed26
random: Support epoll() and select()

The taps are for epoll().  select() doesn't actually need the taps, since
it will see (u)random as readable, always (fstat).  If we ever make Qrandom
block, then we can add edge detection to it (and thus a real tap function).

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/drivers/dev/random.c