Searched refs:hpetFD (Results 1 - 1 of 1) sorted by relevance

/haiku/src/tests/add-ons/kernel/drivers/hpet/
H A Dmain.cpp13 int hpetFD = open("/dev/misc/hpet", O_RDWR); local
14 if (hpetFD < 0) {
20 read(hpetFD, &value, sizeof(uint64));
24 read(hpetFD, &newValue, sizeof(uint64));
30 status = ioctl(hpetFD, HPET_WAIT_TIMER, &timeValue, sizeof(timeValue));
35 status = ioctl(hpetFD, HPET_WAIT_TIMER, &timeValue, sizeof(timeValue));
40 status = ioctl(hpetFD, HPET_WAIT_TIMER, &timeValue, sizeof(timeValue));
43 close(hpetFD);

Completed in 29 milliseconds