Lines Matching defs:hDevice
81 int hDevice = open(fUnrestricted ? DEVICE_NAME_SYS : DEVICE_NAME_USR, O_RDWR, 0);
82 if (hDevice < 0)
100 if (fcntl(hDevice, F_SETFD, FD_CLOEXEC) != 0)
109 close(hDevice);
116 pThis->hDevice = hDevice;
129 if (pThis->hDevice != (intptr_t)NIL_RTFILE)
131 if (close(pThis->hDevice))
133 pThis->hDevice = (intptr_t)NIL_RTFILE;
153 if (RT_LIKELY(ioctl(pThis->hDevice, uFunction, pvReq) >= 0))
161 int rc = ioctl(pThis->hDevice, uFunction, idCpu);