Searched refs:devfd (Results 1 – 2 of 2) sorted by relevance
/tools/testing/selftests/drivers/dma-buf/ |
D | udmabuf.c | 26 int devfd, memfd, buf, ret; in main() local 30 devfd = open("/dev/udmabuf", O_RDWR); in main() 31 if (devfd < 0) { in main() 62 buf = ioctl(devfd, UDMABUF_CREATE, &create); in main() 72 buf = ioctl(devfd, UDMABUF_CREATE, &create); in main() 82 buf = ioctl(devfd, UDMABUF_CREATE, &create); in main() 92 buf = ioctl(devfd, UDMABUF_CREATE, &create); in main() 101 close(devfd); in main()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | d_path.c | 30 int sockfd = -1, procfd = -1, devfd = -1; in trigger_fstat_events() local 47 devfd = open("/dev/urandom", O_RDONLY); in trigger_fstat_events() 48 if (CHECK(devfd < 0, "trigger", "open /dev/urandom failed\n")) in trigger_fstat_events() 71 ret = set_pathname(devfd, pid); in trigger_fstat_events() 86 fstat(devfd, &fileStat); in trigger_fstat_events() 96 close(devfd); in trigger_fstat_events()
|