Searched refs:random_fd (Results 1 – 2 of 2) sorted by relevance
30 static int random_fd = -1; variable41 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()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()[all …]
38 int random_fd = open("/dev/urandom", O_RDONLY); in write_exactly() local43 if (random_fd < 0) { in write_exactly()60 ssize_t read_len = read(random_fd, cursor, remained); in write_exactly()92 close(random_fd); in write_exactly()