From: ian <spyro@f2s.com>
To: linux-serial@vger.kernel.org
Subject: Line disciplines.
Date: Tue, 15 Jul 2008 21:10:25 +0100 [thread overview]
Message-ID: <1216152625.11481.38.camel@wirenth> (raw)
Hi!
Im trying to use a line discipline as a way to hook my kernel module up
to a serial port.
I've implemented methods for open, close, and receive_buf, and
registered the line discipline (Im using N_MOUSE as my number for now)
I've tried using stty line 2 < /dev/ttyS1 to attach my line discipline
to a serial port (and tried this on an already open port too (using cat
to open the port) and my methods never get called.
I've even written a little userspace program that opens ttyS1 and uses
tcsetattr() to select c_line=N_MOUSE.
It looks like the ldisc is being set because after this stty reports
ttyS1 to be using '2' which is correct, however my methods are still
never called.
What am I missing?
TIA,
-Ian
next reply other threads:[~2008-07-15 20:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-15 20:10 ian [this message]
2008-07-15 21:37 ` Line disciplines Paul Fulghum
2008-07-15 22:57 ` ian
2008-07-16 2:10 ` Paul Fulghum
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=1216152625.11481.38.camel@wirenth \
--to=spyro@f2s.com \
--cc=linux-serial@vger.kernel.org \
/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