Searched refs:devfd (Results 1 – 3 of 3) sorted by relevance
| /OK3568_Linux_fs/kernel/tools/testing/selftests/drivers/dma-buf/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/ |
| H A 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()
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/syslinux/syslinux/ |
| H A D | 0008-libinstaller-syslinuxext-implement-syslinux_patch_bo.patch | 68 -static uint64_t get_size(int devfd) 75 - if (!ioctl(devfd, BLKGETSIZE64, &bytes)) 78 - if (!ioctl(devfd, BLKGETSIZE, §s)) 80 - else if (!fstat(devfd, &st) && st.st_size) 94 -static int sysfs_get_offset(int devfd, unsigned long *start) 101 - if (fstat(devfd, &st)) 137 -int get_geometry(int devfd, uint64_t totalbytes, struct hd_geometry *geo) 147 - if (!ioctl(devfd, HDIO_GETGEO, geo)) { 149 - } else if (!ioctl(devfd, FDGETPRM, &fd_str)) { 184 - if (!ioctl(devfd, LOOP_GET_STATUS64, &li64)) [all …]
|