Re: Newbie Question About Device Drivers

From: TerryW (NOSPAM)
Date: 08/02/04


Date: Mon, 02 Aug 2004 09:48:04 -0500

Thanks for the Post Mr. Burn.
I guess we are trying to achieve a more "Real Time" operating system.
We build an XP embedded operating system and then deploy it. This
works great for a lot of our applications. But for some of our
applications, it is very critical that we monitor things flawlessly.
We have an advantech card that we put on a PCI slot that we use for
physical Digital IO (turning gates on/ checking for photo-eye states)
for some systems it is imperitive that we NEVER miss a state change
for an input. And some inputs cycle at 50 cycles per second. We
notice that during intensive screen activity we miss pulses when using
just C++ to read the address of the input card.

It would be ideal to have a piece of code that just counts how many
times the state has changed and return it to other pieces in shared
memory or on the socket.

Didn't mention the model number of the board (PCI-1751.)

TIA,

Terry W.
On Mon, 2 Aug 2004 09:32:05 -0400, "Don Burn" <burn@stopspam.acm.org>
wrote:

>In Windows NT/2000/XP/2003 you cannot access devices from a user space
>program. Additionally, there are some capabilities such as system wide
>monitoring of filesystem or network activities that need to be done in the
>kernel.
>
>Now the challenge is that the kernel is its own environment, with its own
>API's and requirements. Additionally, in the kernel you have access to the
>whole system space, so a mistake is likely to create a crash. So in general
>if you can achieve what you want in user space, it is probably better to do
>so. In fact Microsoft keeps talking about the possibility of some device
>drivers (such as slow USB devices) being supported in user space in the
>future.
>
>Overall there are a lot of differences in the kernel and user programming,
>give the group an idea of what you are thinking about and we can probably
>give you guidance.



Relevant Pages

  • Re: devolopin a mew lang........
    ... MS dos as like it can interract with machine directly with out the ... understand how GNU/Linux works... ... *Linux* is only a kernel. ... the GNU/Linux operating system supports the largest amount of hardware ...
    (comp.os.linux.misc)
  • Re: that old GNU/Linux argument
    ... the kernel software is more essential than GNU software. ... The analogy with the car engine is just an easy way to ... GNU is an operating system that people inaccurately call Linux. ...
    (Fedora)
  • RE: Commercial Distribution?
    ... Linux was brought up as a well known example of the types of services being ... He gets a "Linux is a kernel not an operating ... to mean the entire distribution of applications with it as well. ... not an operating system but simply a collection of software packages stuck ...
    (freebsd-questions)
  • Re: Are you looking for a new Operating System
    ... > Building a new operating system that is at all interesting is a very, ... Building a new UN*X-like operating system kernel which ... But it's worth pointing out that GNU Hurd has been being ... Linux is not an operating system - despite what the majority ...
    (comp.os.linux.misc)
  • Re: Unix runs faster, maybe
    ... A kernel which can do hard real time is at the top of the list. ... I didn't think VMS was hard realtime. ...
    (comp.os.vms)