Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 28 Mar 2002 18:28:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 28 Mar 2002 18:28:07 -0500 Received: from zoon.lafn.org ([206.117.18.9]:27973 "EHLO zoon.lafn.org") by vger.kernel.org with ESMTP id ; Thu, 28 Mar 2002 18:27:50 -0500 Date: Thu, 28 Mar 2002 13:39:43 -0800 From: David Lawyer To: Ed Vance Cc: "'Henrique Gobbi'" , linux-kernel@vger.kernel.org, "'linux-serial'" Subject: Re: Char devices drivers Message-ID: <20020328133942.A446@lafn.org> Mail-Followup-To: David Lawyer , Ed Vance , 'Henrique Gobbi' , linux-kernel@vger.kernel.org, 'linux-serial' In-Reply-To: <11E89240C407D311958800A0C9ACF7D13A76EC@EXCHANGE> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 11, 2002 at 09:59:14AM -0800, Ed Vance wrote: > On Mon, Mar 11, 2002, Henrique Gobbi wrote: > > > > Can anyone explain what is the utility of the callout devices > > in the char drivers ??? > > To further confuse things, most vendors have a "back door" port > configuration mechanism outside of termio(s)/sgtty. For example, Linux has > the setserial command. There is less need for separate callout devices when > the user can set a port to open with the desired flag values. Setserial doesn't have facilities to set open flags for the ports. The reason cua isn't needed is that the programmer can make a ttyS port look like a cua port by using the O_NONBLOCK or O_NDELAY flags. However the non-blocking flag will not only force an open when CD is asserted, but will make all reads of the port non-blocking. So the programmer can change this if he wants after the port has opened. So eliminating cua means more work for the programmer but less confusion for users. Overall, it's a good thing since there are many more users than programmers. David Lawyer - 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/