From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Cox Subject: Re: Help with Implementing a custom line discipline driver Date: Fri, 2 Dec 2011 14:06:32 +0000 Message-ID: <20111202140632.4380c70c@lxorguk.ukuu.org.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:39441 "EHLO earthlight.etchedpixels.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756602Ab1LBOEt (ORCPT ); Fri, 2 Dec 2011 09:04:49 -0500 In-Reply-To: Sender: linux-serial-owner@vger.kernel.org List-Id: linux-serial@vger.kernel.org To: Subodh Nijsure Cc: linux-serial@vger.kernel.org > So the question is, Is it possible to implement line discipline > driver for serial port, that just provides ioctl? No. A line discipline implements data processing for the tty and non device specific interfaces. Device specific extensions and interfaces should go into the tty driver for that actual hardware. Unknown tty ioctls are also passed to the tty drivers ioctl method to allow this. Alan