Searched refs:random_fd (Results 1 – 2 of 2) sorted by relevance
| /linux/arch/um/drivers/ |
| H A D | random.c | 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() 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() [all …]
|
| /linux/tools/testing/selftests/cachestat/ |
| H A D | test_cachestat.c | 43 int random_fd = open("/dev/urandom", O_RDONLY); in write_exactly() local 48 if (random_fd < 0) { in write_exactly() 65 ssize_t read_len = read(random_fd, cursor, remained); in write_exactly() 97 close(random_fd); in write_exactly()
|