mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rodolfo Giometti <giometti@linux.it>
To: linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>,
	David Woodhouse <dwmw2@infradead.org>,
	Dave Jones <davej@redhat.com>, Sam Ravnborg <sam@ravnborg.org>,
	Greg KH <greg@kroah.com>, Randy Dunlap <randy.dunlap@oracle.com>,
	Kay Sievers <kay.sievers@vrfy.org>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>,
	"H. Peter Anvin" <hpa@zytor.com>, Ingo Molnar <mingo@elte.hu>,
	Rodolfo Giometti <giometti@linux.it>
Subject: [PATCH 05/10] ldisc: new dcd_change() method for line disciplines.
Date: Wed, 20 Aug 2008 15:16:05 +0200	[thread overview]
Message-ID: <1219238170-5508-6-git-send-email-giometti@linux.it> (raw)
In-Reply-To: <1219238170-5508-5-git-send-email-giometti@linux.it>

Signed-off-by: Rodolfo Giometti <giometti@linux.it>
---
 Documentation/tty.txt     |    4 ++++
 include/linux/tty_ldisc.h |    8 ++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/Documentation/tty.txt b/Documentation/tty.txt
index 8e65c44..3fc812a 100644
--- a/Documentation/tty.txt
+++ b/Documentation/tty.txt
@@ -100,6 +100,10 @@ write_wakeup()	-	May be called at any point between open and close.
 			is permitted to call the driver write method from
 			this function. In such a situation defer it.
 
+dcd_change()	-	Report to the tty line the current DCD pin status
+			changes and the relative timestamp. The timestamp
+			can be NULL.
+
 
 Driver Access
 
diff --git a/include/linux/tty_ldisc.h b/include/linux/tty_ldisc.h
index 40f38d8..526fbf4 100644
--- a/include/linux/tty_ldisc.h
+++ b/include/linux/tty_ldisc.h
@@ -99,6 +99,12 @@
  *	cease I/O to the tty driver. Can sleep. The driver should
  *	seek to perform this action quickly but should wait until
  *	any pending driver I/O is completed.
+ *
+ * void (*dcd_change)(struct tty_struct *tty, unsigned int status,
+ * 			struct timespec *ts)
+ *
+ *	Tells the discipline that the DCD pin has changed its status and
+ *	the relative timestamp. Pointer ts can be NULL.
  */
 
 #include <linux/fs.h>
@@ -136,6 +142,8 @@ struct tty_ldisc_ops {
 	void	(*receive_buf)(struct tty_struct *, const unsigned char *cp,
 			       char *fp, int count);
 	void	(*write_wakeup)(struct tty_struct *);
+	void	(*dcd_change)(struct tty_struct *, unsigned int,
+				struct timespec *);
 
 	struct  module *owner;
 	
-- 
1.5.4.3


  reply	other threads:[~2008-08-20 13:16 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-20 13:16 LinuxPPS (RESUBMIT 7): the PPS Linux implementation Rodolfo Giometti
2008-08-20 13:16 ` [PATCH 01/10] LinuxPPS core support Rodolfo Giometti
2008-08-20 13:16   ` [PATCH 02/10] PPS: userland header file for PPS API Rodolfo Giometti
2008-08-20 13:16     ` [PATCH 03/10] PPS: documentation programs and examples Rodolfo Giometti
2008-08-20 13:16       ` [PATCH 04/10] PPS: LinuxPPS clients support Rodolfo Giometti
2008-08-20 13:16         ` Rodolfo Giometti [this message]
2008-08-20 13:16           ` [PATCH 06/10] ldisc n_tty: export all N_TTY ldisc methods Rodolfo Giometti
2008-08-20 13:16             ` [PATCH 07/10] tty: new PPS line discipline Rodolfo Giometti
2008-08-20 13:16               ` [PATCH 08/10] PPS: serial clients support Rodolfo Giometti
2008-08-20 13:16                 ` [PATCH 09/10] PPS: parallel port " Rodolfo Giometti
2008-08-20 13:16                   ` [PATCH 10/10] PPS: low level IRQ timestamps recording Rodolfo Giometti
2008-08-21 21:50 ` LinuxPPS (RESUBMIT 7): the PPS Linux implementation H. Peter Anvin
2008-08-21 23:20   ` Alan Cox
2008-08-21 23:44     ` H. Peter Anvin
2008-08-22  8:53   ` Rodolfo Giometti
  -- strict thread matches above, loose matches on Subject: below --
2008-10-02  7:41 Rodolfo Giometti
2008-10-02  7:41 ` [PATCH 01/10] LinuxPPS core support Rodolfo Giometti
2008-10-02  7:41   ` [PATCH 02/10] PPS: userland header file for PPS API Rodolfo Giometti
2008-10-02  7:41     ` [PATCH 03/10] PPS: documentation programs and examples Rodolfo Giometti
2008-10-02  7:41       ` [PATCH 04/10] PPS: LinuxPPS clients support Rodolfo Giometti
2008-10-02  7:41         ` [PATCH 05/10] ldisc: new dcd_change() method for line disciplines Rodolfo Giometti
2008-10-02 15:25           ` H. Peter Anvin
2008-10-02 15:58             ` Alan Cox
2008-09-10  7:52 LinuxPPS (RESUBMIT 7): the PPS Linux implementation Rodolfo Giometti
2008-09-10  7:52 ` [PATCH 01/10] LinuxPPS core support Rodolfo Giometti
2008-09-10  7:52   ` [PATCH 02/10] PPS: userland header file for PPS API Rodolfo Giometti
2008-09-10  7:52     ` [PATCH 03/10] PPS: documentation programs and examples Rodolfo Giometti
2008-09-10  7:52       ` [PATCH 04/10] PPS: LinuxPPS clients support Rodolfo Giometti
2008-09-10  7:52         ` [PATCH 05/10] ldisc: new dcd_change() method for line disciplines Rodolfo Giometti
2008-08-19 21:50 LinuxPPS (RESUBMIT 6): the PPS Linux implementation Rodolfo Giometti
2008-08-19 21:50 ` [PATCH 01/10] LinuxPPS core support Rodolfo Giometti
2008-08-19 21:50   ` [PATCH 02/10] PPS: userland header file for PPS API Rodolfo Giometti
2008-08-19 21:50     ` [PATCH 03/10] PPS: documentation programs and examples Rodolfo Giometti
2008-08-19 21:50       ` [PATCH 04/10] PPS: LinuxPPS clients support Rodolfo Giometti
2008-08-19 21:50         ` [PATCH 05/10] ldisc: new dcd_change() method for line disciplines Rodolfo Giometti
2008-08-19 21:53           ` Alan Cox
2008-08-19 22:49             ` Rodolfo Giometti
2008-08-19 22:38               ` Alan Cox
2008-08-19 23:05                 ` Rodolfo Giometti
2008-08-20  8:53                   ` Rodolfo Giometti
2008-08-20 10:11                     ` Alan Cox
2008-08-20 10:31                       ` [PATCH 09/10] PPS: low level IRQ timestamps recording Ingo Molnar
2008-08-20 13:01                         ` [PATCH 05/10] ldisc: new dcd_change() method for line disciplines Rodolfo Giometti
2008-08-20 13:48                           ` Ingo Molnar
2008-08-20 14:05                             ` Rodolfo Giometti

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=1219238170-5508-6-git-send-email-giometti@linux.it \
    --to=giometti@linux.it \
    --cc=akpm@linux-foundation.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=davej@redhat.com \
    --cc=dwmw2@infradead.org \
    --cc=greg@kroah.com \
    --cc=hpa@zytor.com \
    --cc=kay.sievers@vrfy.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=randy.dunlap@oracle.com \
    --cc=sam@ravnborg.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

Powered by JetHome