AllocHPETUnit() | FreeHPETUnit() | GetHPETCount() | GetUnitAttrsA() |
ULONG AllocHPETUnit( const char * user );
Allocate a free HPET timer for use.
user - a string specifying the name of current user. Can not be NULL.
A number of HPET timer unit allocated for exclusive use, or -1 if there was no free HPET.
void FreeHPETUnit( ULONG unit );
Free the specified HPET unit.
unit - a number of previously allocated HPET unit.
None.
ULONG GetHPETCount();
Return the total number of HPET units in the system.
None
Total number of HPET units
BOOL GetUnitAttrsA( ULONG unit, struct TagItem * tags ); BOOL GetUnitAttrs( ULONG unit, TAG tag, ... );
Query attributes of HPET unit.
unit - a number of previously allocated HPET unit.
TRUE in case of success or FALSE if the given unit number is out of range.