HAC_SLEEP
uint_t cbflags = HAC_SLEEP;
int kmflags = (flags & HAC_SLEEP)? KM_SLEEP : KM_NOSLEEP;
HAC_SLEEP : HAC_NOSLEEP) | HAC_PAGELOCK;