This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: [ecos] synchronization level of cyg_drv_cond_broadcast
- To: Schmidt Henning Larsen <HenningLS at danfoss dot com>
- Subject: Re: [ECOS] [ecos] synchronization level of cyg_drv_cond_broadcast
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 30 Oct 2001 13:18:41 +0000
- Cc: "Ecos-Discuss (E-mail)" <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <829F632D2F25D411B6920008C716F831025B80EB@dd01-e01.drives.danfoss.dk>
Schmidt Henning Larsen wrote:
>
> Hi
>
> Why is the syncronization level of cyg_drv_cond_broadcast: DSR.
> I meen it's a nonblocking call !?
You mean you expect to use it in an ISR too? The answer is no as it might
corrupt kernel structures that are only protected by a DSR lock, not by
disabling interrupts. This is entirely intentional.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine