Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: rkoehler@author.gsfc.nasa.gov (Bob Koehler)
Subject: Re: Driver Question
Date: Thu, 25 Mar 1993 18:32:00 GMT	[thread overview]
Message-ID: <25MAR199313325730@author.gsfc.nasa.gov> (raw)
In-Reply-To: 1993Mar23.205833.1057@dragon.com

In article <1993Mar23.205833.1057@dragon.com>, cts@dragon.com writes...
>I have a system where a real time application drives custom hardware via
>a DRV11-W and a custom driver.
> 
>One of the requirements of the system is that the hardware on the other
>end of the DRV11-W see an output several times a second to remain online.
>Right now, we're using a process to send out this "idle" message;  however,
>some of the other tasks that need to execute at a high priority (realtime,
>remember) sometimes prevent the idle task from doing its thing.  
>Setting the idle task to a higher priority is not desirable;  the 
>question has been asked - could this idle function be incorporated at
>the driver in such a fashion that the driver would handle the idle
>message without being delayed by the other processing on the system.
> 
>One method suggested casually was capturing the IRP of an idle message,
>and continually queueing it up over and over again.  I'm uncomfortable
>with this approach.  Any ideas or suggestions from the net?
> 
>--
>Charles T. Smith, Jr.                         | "Beam me up, Scotty, there's no 
>VMS & Network Consulting                      |  intelligent life down here..."
>cts@dragon.com                                |
>{gatech,emory}!dragon!cts                     |
> 

1) Any reason it can't be done in an AST in the "other tasks"?

2) If you have to do it in the driver, you're on the right track.  Study how to
do the timing a good bit though, most of the easy timing available to device
drivers involes either a busy loop, or a ganularity of not better than 1 second
or 2.  Maybe take a look at Hanrahan and Leahy's "VMS Advanced Device Driver 
Techniques" (start around section 2.6) if you can get a copy (Professional
Press).

------------------------------------------------------------------------------
Bob Koehler                     |   Any illusion to these opinions being other
rkoehler@author.gsfc.nasa.gov   |   than just mine alone is just that.


  parent reply	other threads:[~1993-03-25 18:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-03-24  1:58 Driver Question cts
1993-03-24 23:23 ` David L. Cathey
1993-03-25 18:32 ` Bob Koehler [this message]
1993-03-29 13:02   ` Paul Repacholi
1993-03-27  2:24 ` jeh
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox