From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 19 May 2001 16:12:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 19 May 2001 16:11:58 -0400 Received: from smtp3.libero.it ([193.70.192.53]:35265 "EHLO smtp3.libero.it") by vger.kernel.org with ESMTP id ; Sat, 19 May 2001 16:11:52 -0400 Message-ID: <3B06D37D.C98BE713@alsa-project.org> Date: Sat, 19 May 2001 22:11:41 +0200 From: Abramo Bagnara Organization: Opera Unica X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.4 i586) X-Accept-Language: it, en MIME-Version: 1.0 To: Linus Torvalds CC: Pavel Machek , James Simmons , Alexander Viro , Alan Cox , Neil Brown , Jeff Garzik , "H. Peter Anvin" , Linux Kernel Mailing List Subject: Re: no ioctls for serial ports? [was Re: LANANA: To Pending DeviceNumber Registrants] In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds wrote: > > [ Attribution is gone, so I just deleted it.. ] > > > > > > fd = open("/dev/tty00/nonblock,9600,n8", O_RDWR); > > > > > > > > Hmm, there might be problem with this. How do you change speed without > > > > reopening device? [Remember: your mice knows when you close device] > > The naming scheme is not a replacement for these kinds of ioctl's - it's > just a way to make them less critical, and get people thinking in other > directions so that we don't get _more_ ioctl's. However fchdir(fd); s = open("speed"); write(s, "19200\n", 6); would be enough to solve the problem Pavel is pointing also without the need to use ioctl. -- Abramo Bagnara mailto:abramo@alsa-project.org Opera Unica Phone: +39.546.656023 Via Emilia Interna, 140 48014 Castel Bolognese (RA) - Italy ALSA project http://www.alsa-project.org It sounds good!