Re: help regarding development of common interface of application with devices..
From: John Fusco (fusco_john_at_yahoo.com)
Date: 08/10/04
- Next message: nikhil bhargav: "Re: help regarding development of common interface of application with devices.."
- Previous message: nikhil bhargav: "help regarding development of common interface of application with devices.."
- In reply to: nikhil bhargav: "help regarding development of common interface of application with devices.."
- Next in thread: nikhil bhargav: "Re: help regarding development of common interface of application with devices.."
- Reply: nikhil bhargav: "Re: help regarding development of common interface of application with devices.."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 09 Aug 2004 22:29:56 GMT
You do know this is a Linux newsgroup right?
Assuming you are implementing this on Linux, the "global variable"
approach in Linux would be done via an mmap. The device driver could
mark this region uncacheable, which would help with the synchronization
issues, but not completely. Guaranteed synchronization would rely on
the application using msync() calls at the right times. Even then, the
instruction pipelines can confound your timing. It all depends on how
sensitive your application is to timing.
To hide this complexity from the application, you might want to consider
using an ioctl interface, read/write call interface, or the proc
filesystem instead of mmap. These methods would allow you to perform
synchronization in the driver so the application doesn't have to deal
with it.
Regards,
John
nikhil bhargav wrote:
> hi all,
>
> I am developing on a small scale embedded project which is a course
> level modification of WDM system. We have a set of devices which read
> some parameters in their registers and store them. These parameters
> are read by application modules which look after aspects like
> Performance monitoring, Fault monitoring, configuration and error
> reporting. I am using Xinu based RTOS called XRTS.
>
> So far the interface between these device drivers and application code
> is not defined. Device driver have and application modules have
> defined common globla variables in which device driver writes
> information in say every 0.5 sec and application module reads in say
> every 15 sec. But in this approach thee is no security and
> synchronization.
>
> I am looking for a better implementation i.e. a common interface which
> I could use for all devices. It should provide security,
> synchronization and data integrity.
>
> Any pointers would be useful.
>
>
> Bye,
>
> nikhil
- Next message: nikhil bhargav: "Re: help regarding development of common interface of application with devices.."
- Previous message: nikhil bhargav: "help regarding development of common interface of application with devices.."
- In reply to: nikhil bhargav: "help regarding development of common interface of application with devices.."
- Next in thread: nikhil bhargav: "Re: help regarding development of common interface of application with devices.."
- Reply: nikhil bhargav: "Re: help regarding development of common interface of application with devices.."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|