This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: blocking read of serial device driver
- From: Jonathan Larmour <jlarmour at redhat dot com>
- To: Roland Caßebohm <roland dot cassebohm at visionsystems dot de>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 04 Apr 2002 06:10:17 +0100
- Subject: Re: [ECOS] blocking read of serial device driver
- References: <200203271520.g2RFKKr22764@hhlx01.visionsystems.de>
Roland Caßebohm wrote:
>
> Hi,
>
> I like to have a blocking read with termios for th serial device driver. I
> think when I set c_cc[ VMIN ]=1 it should block, but it doesn't. I have
> looked at the code of termios_read(). The function can only block in
> canonical mode. But when I set c_cc[ VMIN ]=1 the function have to block
> since at least 1 character is received.
As per
http://sources.redhat.com/ecos/docs-latest/ecos-elix/ecos-elix.2.html#pgfId=2626807
we only support MIN=0,TIME=0 at present.
Look at http://people.freebsd.org/~luoqi/ecos/vtime.diff for some
improvements, but we never got a copyright assignment :-|.
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
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss