From: Gorka Guardiola <paurea@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] usb/serial control open
Date: Sun, 23 Mar 2014 20:47:59 +0100 [thread overview]
Message-ID: <CACm3i_j9qm4bDYQzWhw6OYhQUXW0v3VY5ar5dt2TCwOFTrJ=nw@mail.gmail.com> (raw)
In-Reply-To: <40707a306f2cb1caf97b21f639f8a9f5@brasstown.quanstro.net>
>
> so if i do this
>
> echo l7>/dev/eiaU6/eiaUctl
> cat /dev/eiaU6/eiaUctl
>
> that's two opens, isn't it? then isn't l reset to 8 by the second
> open?
>
It has been a while and I don´t have the code at hand now, but once
it is at a known state, it shouldn´t set it again, that is probably a bug.
It should be something like:
if(!setonce){
setonce = 1;
serialctl(p, "l8 i1"); /* default line parameters */
}
G.
next prev parent reply other threads:[~2014-03-23 19:47 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-23 18:09 erik quanstrom
2014-03-23 18:34 ` Gorka Guardiola
2014-03-23 18:55 ` erik quanstrom
2014-03-23 19:47 ` Gorka Guardiola [this message]
2014-03-23 19:55 ` Gorka Guardiola
2014-03-23 20:32 ` erik quanstrom
2014-03-23 21:08 ` Gorka Guardiola
2014-03-24 1:49 ` erik quanstrom
2014-03-23 21:32 ` Bakul Shah
2014-03-23 21:53 ` erik quanstrom
2014-03-23 22:02 ` Bakul Shah
2014-03-24 0:32 ` erik quanstrom
2014-03-24 0:41 ` Bakul Shah
2014-03-23 5:04 ` lucio
2014-03-23 19:53 ` Gorka Guardiola
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='CACm3i_j9qm4bDYQzWhw6OYhQUXW0v3VY5ar5dt2TCwOFTrJ=nw@mail.gmail.com' \
--to=paurea@gmail.com \
--cc=9fans@9fans.net \
/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 NNTP newsgroup(s).