/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0333/ |
poc.c | 34 int dev_fd; variable 47 dev_fd = open(DEV, O_RDONLY); 49 if (dev_fd == -1) { 55 ret = ioctl(dev_fd, DRM_IOCTL_NOUVEAU_NVIF, &s_nvif);
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8431/ |
poc.c | 31 int dev_fd; variable 59 dev_fd = open(DEV,O_RDONLY); 60 if(dev_fd == -1){ 66 ret = ioctl(dev_fd, DRM_IOCTL_TEGRA_OPEN_CHANNEL, &open_c); 73 ret = ioctl(dev_fd, DRM_IOCTL_TEGRA_GEM_CREATE, &gem_create); 84 ioctl(dev_fd, DRM_IOCTL_TEGRA_SUBMIT, &submit_c); 89 close(dev_fd);
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8432/ |
poc.c | 35 int dev_fd; variable 95 ioctl(dev_fd, DRM_IOCTL_TEGRA_SUBMIT, &submit_c); 107 dev_fd = open(DEV,O_RDONLY); 108 if(dev_fd == -1){ 114 ret = ioctl(dev_fd, DRM_IOCTL_TEGRA_OPEN_CHANNEL, &open_c); 123 ret = ioctl(dev_fd, DRM_IOCTL_TEGRA_GEM_CREATE, &gem_create); 134 while(ioctl(dev_fd, DRM_IOCTL_GEM_CLOSE, &gem_close) == 0); 144 close(dev_fd);
|
/external/ltp/testcases/kernel/syscalls/preadv/ |
preadv03.c | 105 int dev_fd, ret; local 107 dev_fd = SAFE_OPEN(tst_device->dev, O_RDWR); 108 SAFE_IOCTL(dev_fd, BLKSSZGET, &ret); 109 SAFE_CLOSE(dev_fd);
|
/external/ltp/testcases/kernel/syscalls/pwritev/ |
pwritev03.c | 104 int dev_fd, ret; local 106 dev_fd = SAFE_OPEN(tst_device->dev, O_RDWR); 107 SAFE_IOCTL(dev_fd, BLKSSZGET, &ret); 108 SAFE_CLOSE(dev_fd);
|
/external/ltp/lib/ |
tst_device.c | 73 int ctl_fd, dev_fd, rc, i; local 112 dev_fd = open(dev_path, O_RDONLY); 114 if (dev_fd < 0) 117 if (ioctl(dev_fd, LOOP_GET_STATUS, &loopinfo) == 0) { 123 close(dev_fd); 127 close(dev_fd); 137 int dev_fd, file_fd; local 140 dev_fd = open(dev, O_RDWR); 141 if (dev_fd < 0) { 149 close(dev_fd); 183 int dev_fd, ret, i; local [all...] |
/device/linaro/hikey/wpan/uim/ |
uim.c | 39 static int dev_fd; variable 57 void read_firmware_version(int dev_fd) 64 UIM_VER(" wrote %d bytes", (int)write(dev_fd, buffer, 4)); 65 UIM_VER(" reading %d bytes", (int)read(dev_fd, resp_buffer, 15)); 199 static int set_baud_rate(int dev_fd) 204 tcflush(dev_fd, TCIOFLUSH); 207 if (tcgetattr(dev_fd, &ti) < 0) { 222 tcsetattr(dev_fd, TCSANOW, &ti); 227 tcsetattr(dev_fd, TCSANOW, &ti); 229 tcflush(dev_fd, TCIOFLUSH) [all...] |
/external/f2fs-tools/tools/sg_write_buffer/include/ |
sg_pt_linux.h | 103 int dev_fd; /* -1 if not given (yet) */ member in struct:sg_pt_linux_scsi 107 * implies dev_fd is not a NVMe device
|
/external/linux-kselftest/tools/testing/selftests/kvm/lib/ |
kvm_util.c | 703 int dev_fd, ret; local 705 dev_fd = open(KVM_DEV_PATH, O_RDONLY); 706 if (dev_fd < 0) 709 ret = ioctl(dev_fd, KVM_GET_VCPU_MMAP_SIZE, NULL); 714 close(dev_fd); [all...] |
/device/google/marlin/camera/QCamera2/stack/mm-camera-interface/src/ |
mm_camera_interface.c | 1565 int dev_fd = -1; local 1781 int dev_fd = -1; local [all...] |
/external/toybox/toys/pending/ |
fdisk.c | 85 static int num_parts, disp_unit_cyl, dos_flag, dev_fd = 3; variable 151 if (ioctl(dev_fd, BLKSSZGET, &arg) == 0) g_sect_size = arg; 166 if (ioctl(dev_fd, BLKGETSIZE64, &sec64) == 0) { 174 if (ioctl(dev_fd, BLKGETSIZE, §ors) == 0) 227 if (ioctl(dev_fd, HDIO_GETGEO, &geometry)) return; 260 xlseek(dev_fd, (off_t)(offset * g_sect_size), SEEK_SET); 262 if (g_sect_size != readall(dev_fd, sec_buf, g_sect_size)) { 263 close(dev_fd); 355 if(fd != dev_fd) { 356 if(dup2(fd, dev_fd) != dev_fd) perror_exit("Can't dup2") [all...] |
/external/minijail/ |
libminijail.c | 1382 int dev_fd; local [all...] |