Lines Matching defs:hDevice
85 int hDevice = open(fUnrestricted ? DEVICE_NAME_SYS : DEVICE_NAME_USR, O_RDWR, 0);
86 if (hDevice < 0)
104 if (fcntl(hDevice, F_SETFD, FD_CLOEXEC) != 0)
113 close(hDevice);
117 pThis->hDevice = hDevice;
199 Assert(pThis->hDevice == (intptr_t)NIL_RTFILE);
242 if (pThis->hDevice != (intptr_t)NIL_RTFILE)
244 if (close(pThis->hDevice))
246 pThis->hDevice = (intptr_t)NIL_RTFILE;
267 if (RT_LIKELY(ioctl(pThis->hDevice, uFunction, pvReq) >= 0))
275 int rc = ioctl(pThis->hDevice, uFunction, idCpu);