Searched refs:random_fd (Results 1 - 2 of 2) sorted by path

/linux-master/arch/um/drivers/
H A Drandom.c30 static int random_fd = -1; variable
39 ret = os_read_file(random_fd, buf, max);
41 add_sigio_fd(random_fd);
45 ignore_sigio_fd(random_fd);
46 deactivate_fd(random_fd, RANDOM_IRQ);
76 random_fd = err;
77 err = um_request_irq(RANDOM_IRQ, random_fd, IRQ_READ, random_interrupt,
82 sigio_broken(random_fd);
95 os_close_file(random_fd);
96 random_fd
[all...]
/linux-master/tools/testing/selftests/cachestat/
H A Dtest_cachestat.c37 int random_fd = open("/dev/urandom", O_RDONLY); local
42 if (random_fd < 0) {
59 ssize_t read_len = read(random_fd, cursor, remained);
91 close(random_fd);

Completed in 198 milliseconds