Home
last modified time | relevance | path

Searched refs:devfd (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/drivers/dma-buf/
Dudmabuf.c26 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()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dd_path.c32 int sockfd = -1, procfd = -1, devfd = -1; in trigger_fstat_events() local
49 devfd = open("/dev/urandom", O_RDONLY); in trigger_fstat_events()
50 if (CHECK(devfd < 0, "trigger", "open /dev/urandom failed\n")) in trigger_fstat_events()
73 ret = set_pathname(devfd, pid); in trigger_fstat_events()
88 fstat(devfd, &fileStat); in trigger_fstat_events()
98 close(devfd); in trigger_fstat_events()