From: Grant Edwards <grante@visi.com>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] Re: remote syslog support in Redboot?
Date: Thu, 10 May 2007 21:40:00 -0000 [thread overview]
Message-ID: <f1vfj7$6ih$1@sea.gmane.org> (raw)
In-Reply-To: <464331E6.9070800@mlbassoc.com>
On 2007-05-10, Gary Thomas <gary@mlbassoc.com> wrote:
>>>> Has anyone implemented the ability to have diag_printf()
>>>> messages be sent to a remote syslog server in Redboot/ecos?
>>>
>>> You will have to be careful when doing this. diag_printf()
>>> uses a very simple polled IO, blocking serial device driver.
>>> The idea is that it should always work, in any context. So you
>>> can do a diag_printf() in an ISR or a DSR, not just a thread.
>>> It is also guaranteed the output will be out the serial port
>>> before diag_printf() returns.
>>
>> How is this guaranteed if I connect to Redboot on tcp port
>> 9000?
>
> RedBoot uses a polled TCP connection, thus when you make a
> call to diag_printf() that channels through RedBoot, it _will_
> complete at the receiver before continuing.
I've wondered about that.
The comment for __tcp_write_block() says that it blocks until
sent. What it appears to do by calling __tcp_drain() (and what
is implied by your statement above) is that it blocks until the
data is _ACKed_ not until the data is _sent_.
--
Grant Edwards grante Yow! My BIOLOGICAL ALARM
at CLOCK just went off ... It
visi.com has noiseless DOZE FUNCTION
and full kitchen!!
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
prev parent reply other threads:[~2007-05-10 16:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-09 22:50 [ECOS] " Jon Ringle
2007-05-10 14:13 ` Andrew Lunn
2007-05-10 14:53 ` Jon Ringle
2007-05-10 16:02 ` Gary Thomas
2007-05-10 21:40 ` Grant Edwards [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='f1vfj7$6ih$1@sea.gmane.org' \
--to=grante@visi.com \
--cc=ecos-discuss@sources.redhat.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).