From: Jonathan Larmour <jlarmour@redhat.com>
To: Ling Su <lingsu@palmmicro.com>
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] How to make a Interrupt driven serial port driver?
Date: Sun, 29 Oct 2000 19:02:00 -0000 [thread overview]
Message-ID: <39FCE4B5.A22C557B@redhat.com> (raw)
In-Reply-To: <007701c04219$5ab4d530$0301a8c0@leopard>
Ling Su wrote:
>
> > Or instead are you asking for some sort of automatic notification to your
> > application when data arrives?
> >
>
> Yeah, exactly, what I am asking is how to make a kind of automatic
> notification to my application, so that my own serial port handler can
> continue process that data when data arrives. Any clue? Thanks!
Well, in that case as per another thread on ecos-discuss, you can either:
- use select(), but this has a number of overheads
- use a separate thread to read data, and then signal other threads in your
application
- or just go ahead and modify the source in the driver itself! e.g. by
waking up a thread in the serial DSR. This is one of the advantages of open
source after all.
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault
prev parent reply other threads:[~2000-10-29 19:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-27 17:53 Ling Su
2000-10-29 13:43 ` Jonathan Larmour
2000-10-29 18:28 ` Ling Su
2000-10-29 19:02 ` Jonathan Larmour [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=39FCE4B5.A22C557B@redhat.com \
--to=jlarmour@redhat.com \
--cc=ecos-discuss@sources.redhat.com \
--cc=lingsu@palmmicro.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).