Lines Matching refs:random_fd
30 static int random_fd = -1; variable
39 ret = os_read_file(random_fd, buf, max); in rng_dev_read()
41 add_sigio_fd(random_fd); in rng_dev_read()
45 ignore_sigio_fd(random_fd); in rng_dev_read()
46 deactivate_fd(random_fd, RANDOM_IRQ); in rng_dev_read()
76 random_fd = err; in rng_init()
77 err = um_request_irq(RANDOM_IRQ, random_fd, IRQ_READ, random_interrupt, in rng_init()
82 sigio_broken(random_fd); in rng_init()
95 os_close_file(random_fd); in rng_init()
96 random_fd = -1; in rng_init()
106 free_irq_by_fd(random_fd); in cleanup()
107 os_close_file(random_fd); in cleanup()
113 os_close_file(random_fd); in rng_cleanup()