Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753996AbYHSWtx (ORCPT ); Tue, 19 Aug 2008 18:49:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751649AbYHSWto (ORCPT ); Tue, 19 Aug 2008 18:49:44 -0400 Received: from 81-174-11-161.static.ngi.it ([81.174.11.161]:58916 "EHLO mail.enneenne.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751132AbYHSWtn (ORCPT ); Tue, 19 Aug 2008 18:49:43 -0400 Date: Wed, 20 Aug 2008 00:49:31 +0200 From: Rodolfo Giometti To: Alan Cox Cc: linux-kernel@vger.kernel.org, Andrew Morton , David Woodhouse , Dave Jones , Sam Ravnborg , Greg KH , Randy Dunlap , Kay Sievers Message-ID: <20080819224930.GI21330@tekkaman> References: <1219182612-13814-1-git-send-email-giometti@linux.it> <1219182612-13814-2-git-send-email-giometti@linux.it> <1219182612-13814-3-git-send-email-giometti@linux.it> <1219182612-13814-4-git-send-email-giometti@linux.it> <1219182612-13814-5-git-send-email-giometti@linux.it> <1219182612-13814-6-git-send-email-giometti@linux.it> <20080819225322.69f3215d@lxorguk.ukuu.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080819225322.69f3215d@lxorguk.ukuu.org.uk> Organization: GNU/Linux Device Drivers, Embedded Systems and Courses X-PGP-Key: gpg --keyserver keyserver.linux.it --recv-keys D25A5633 User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-SA-Exim-Connect-IP: 192.168.32.254 X-SA-Exim-Mail-From: giometti@enneenne.com Subject: Re: [PATCH 05/10] ldisc: new dcd_change() method for line disciplines. X-SA-Exim-Version: 4.2.1 (built Tue, 09 Jan 2007 17:23:22 +0000) X-SA-Exim-Scanned: Yes (on mail.enneenne.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1214 Lines: 32 On Tue, Aug 19, 2008 at 10:53:22PM +0100, Alan Cox wrote: > > + * void (*dcd_change)(struct uart_port *port, 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. > > */ > > uart_port is a specific property of a few random types of interface, pass > a tty struct up. Otherwise looks fine. Might one day expand it to a more > generic change type and pass info on what changed but thats a future > mystery. How can I get the struct uart_port pointer starting from struct tty_struct one? I need it in order to know which is the IRQ line of a single port. Thanks, Rodolfo -- GNU/Linux Solutions e-mail: giometti@enneenne.com Linux Device Driver giometti@linux.it Embedded Systems phone: +39 349 2432127 UNIX programming skype: rodolfo.giometti -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/