From owner-freebsd-arch@FreeBSD.ORG Wed Apr 9 17:59:39 2008 Return-Path: Delivered-To: arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13E441065741 for ; Wed, 9 Apr 2008 17:59:39 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (w.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id D1C488FC0C for ; Wed, 9 Apr 2008 17:59:38 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id m39HxaP1088211; Wed, 9 Apr 2008 11:59:36 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.2/8.14.2) with ESMTP id m39HxZjO061598; Wed, 9 Apr 2008 11:59:35 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.2/8.14.2/Submit) id m39HxUtg061595; Wed, 9 Apr 2008 11:59:30 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18429.1026.716346.691351@gromit.timing.com> Date: Wed, 9 Apr 2008 11:59:30 -0600 From: John E Hein To: "M. Warner Losh" In-Reply-To: <20080409.101816.1824031653.imp@bsdimp.com> References: <40914.1207681578@critter.freebsd.dk> <20080409.044228.-201314267.imp@bsdimp.com> <18428.59782.318085.53492@gromit.timing.com> <20080409.101816.1824031653.imp@bsdimp.com> X-Mailer: VM 7.19 under Emacs 22.1.1 X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean Cc: arch@FreeBSD.org, phk@phk.freebsd.dk Subject: Re: tt_ioctl X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2008 17:59:39 -0000 M. Warner Losh wrote at 10:18 -0600 on Apr 9, 2008: > Yes. I almost just quietly committed it to FreeBSD at the time, but I > got busy on another project and never got back to it. Maybe I should > have just done it and saw if phk noticed :-) Never try to accomplish through planning what can be done more simply through subterfuge. > : Well, I could go either way on this issue - 'specious' might be a bit > : too strong. I could see issues with pass-through device-specific > : ioctls on tty devs - especially due to the fact that it's a tty device > : is somewhat obscured in the case of ucom children. > > I'm not sure I follow what you are saying here... I'm not sure which part your asking about, so I'll just try to be a bit more verbose. - re: issues with pass-thru ioctls... I'm just commenting that I understand phk's concerns about potentially ill-advised ioctls on the tty dev. - re: ucom-based driver ioctls... those drivers just set the ucomioctl method and so don't know (without digging) that it hooks up to the tty ioctl method... hence the 'obscured' comment and since the relationship to the tty device is somewhat obscured through an indirect relationship, the ucom-based driver writer may not be aware of the potential problems with exposing ioctls on the tty dev.