This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: Devio function context?
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: Re: [ECOS] Devio function context?
- From: Nick Garnett <nickg at cygnus dot co dot uk>
- Date: 08 Mar 2000 10:27:19 +0000
- Newsgroups: cygnus.sourceware.ecos.d
- Organization: Cygnus Solutions, a Red Hat company (Cambridge, UK)
- References: <XFMail.000307161740.gthomas@redhat.com>
Gary Thomas <gthomas@redhat.com> writes:
> On 07-Mar-00 Grant Edwards wrote:
> >
> > Are the functions in the EVIO_TABLE (read/write/get|set_config)
> > running in the context of the calling thread?
> >
> > For example, can they call cyg_mutex_lock()/cyg_mutex_unlock(),
> > cyg_thread_delay(), etc.?
> >
>
> Absolutely.
...but you should really use the cyg_drv_... versions of these
functions so that the driver is portable to non-kernel configurations.
--
Nick Garnett
Cygnus Solutions, a Red Hat Company
Cambridge, UK