KeDelayExecutionThread and automatic variables???

Hello,

  1. Is it legal to pass an automatic variable for the formal parameter “Interval”?

  2. If say I want to wait 2 seconds, should pass a relative or absolute interval?

Regards, Vasili


Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more

> 1) Is it legal to pass an automatic variable for the

formal parameter “Interval”?

Yes.

  1. If say I want to wait 2 seconds, should pass a relative
    or absolute interval?

Relative is easier to deal with and generally fits the semantics needed
by drivers better.

For 2 seconds you’d want a value of -20,000,000 (negative 20 million).
If you wanted to use an absolute time you’d have to get the current
time, add 20,000,000 to it, and use the (positive) result as your
interval.

The big advantage of relative time for things like device timeouts, or
protocol timeouts, is this: Say you are one second into your two-second
interval and someone or something corrects the system time, setting it
ahead by a second or more. If you asked for your delay via an absolute
time, your delay would end at that moment, a second early (at least
you’d be eligible to execute then). But if you specify your interval as
a relative time, you get your two seconds regardless of what anyone does
to the system’s notion of TOD.

— Jamie Hanrahan
Azius Developer Training http://www.azius.com/
Kernel Mode Systems http://www.cmkrnl.com/
Windows Driver Consulting and Training

Yes the parameter can be an automatic variable, do it
relative it is easier.

Don Burn
Windows 2k/XP/2k3 Filesystem and Driver Consulting

----- Original Message -----
From: Galchin Vasili
To: NT Developers Interest List
Sent: Monday, April 07, 2003 10:03 PM
Subject: [ntdev] KeDelayExecutionThread and automatic variables???

Hello,

  1. Is it legal to pass an automatic variable for the formal parameter
    “Interval”?
  2. If say I want to wait 2 seconds, should pass a relative or absolute
    interval?
    Regards, Vasili

Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more — You are
currently subscribed to ntdev as: xxxxx@acm.org To unsubscribe send a blank
email to xxxxx@lists.osr.com

  1. Yes
  2. Relative

Max

----- Original Message -----
From: Galchin Vasili
To: NT Developers Interest List
Sent: Tuesday, April 08, 2003 6:03 AM
Subject: [ntdev] KeDelayExecutionThread and automatic variables???

Hello,

  1. Is it legal to pass an automatic variable for the formal parameter “Interval”?

  2. If say I want to wait 2 seconds, should pass a relative or absolute interval?

Regards, Vasili


Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more — You are currently subscribed to ntdev as: xxxxx@storagecraft.com To unsubscribe send a blank email to xxxxx@lists.osr.com