From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7cd1,83be2899f2f3f808 X-Google-Attributes: gidf7cd1,public X-Google-Thread: f73f6,83be2899f2f3f808 X-Google-Attributes: gidf73f6,public X-Google-Thread: 1164f8,83be2899f2f3f808 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-03-25 10:32:00 PST Xref: sparky comp.sys.dec:8066 vmsnet.misc:1334 vmsnet.internals:2009 Newsgroups: comp.sys.dec,vmsnet.misc,vmsnet.internals Path: sparky!uunet!gatech!ukma!news1.gsfc.nasa.gov!author.gsfc.nasa.gov!rkoehler From: rkoehler@author.gsfc.nasa.gov (Bob Koehler) Subject: Re: Driver Question Message-ID: <25MAR199313325730@author.gsfc.nasa.gov> News-Software: VAX/VMS VNEWS 1.4-b1 Sender: usenet@skates.gsfc.nasa.gov Organization: CSC System Sciences Division References: <1993Mar23.205833.1057@dragon.com> Date: Thu, 25 Mar 1993 18:32:00 GMT 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.