random.c (9a64e8e0ace51b309fdcff4b4754b3649250382a) random.c (aab944606f9490f158d3b28f6c44a33c4701a5b3)
1/* Copyright (C) 2005 - 2008 Jeff Dike <jdike@{linux.intel,addtoit}.com> */
2
3/* Much of this ripped from drivers/char/hw_random.c, see there for other
4 * copyright.
5 *
6 * This software may be used and distributed according to the terms
7 * of the GNU General Public License, incorporated herein by reference.
8 */

--- 117 unchanged lines hidden (view full) ---

126
127 err = os_open_file("/dev/random", of_read(OPENFLAGS()), 0);
128 if (err < 0)
129 goto out;
130
131 random_fd = err;
132
133 err = um_request_irq(RANDOM_IRQ, random_fd, IRQ_READ, random_interrupt,
1/* Copyright (C) 2005 - 2008 Jeff Dike <jdike@{linux.intel,addtoit}.com> */
2
3/* Much of this ripped from drivers/char/hw_random.c, see there for other
4 * copyright.
5 *
6 * This software may be used and distributed according to the terms
7 * of the GNU General Public License, incorporated herein by reference.
8 */

--- 117 unchanged lines hidden (view full) ---

126
127 err = os_open_file("/dev/random", of_read(OPENFLAGS()), 0);
128 if (err < 0)
129 goto out;
130
131 random_fd = err;
132
133 err = um_request_irq(RANDOM_IRQ, random_fd, IRQ_READ, random_interrupt,
134 IRQF_SAMPLE_RANDOM, "random",
135 NULL);
134 0, "random", NULL);
136 if (err)
137 goto err_out_cleanup_hw;
138
139 sigio_broken(random_fd, 1);
140
141 err = misc_register (&rng_miscdev);
142 if (err) {
143 printk (KERN_ERR RNG_MODULE_NAME ": misc device register "

--- 26 unchanged lines hidden ---
135 if (err)
136 goto err_out_cleanup_hw;
137
138 sigio_broken(random_fd, 1);
139
140 err = misc_register (&rng_miscdev);
141 if (err) {
142 printk (KERN_ERR RNG_MODULE_NAME ": misc device register "

--- 26 unchanged lines hidden ---