From owner-freebsd-hackers Sat Oct 19 15:56:38 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA16977 for hackers-outgoing; Sat, 19 Oct 1996 15:56:38 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id PAA16561 for ; Sat, 19 Oct 1996 15:53:06 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id AAA08266; Sun, 20 Oct 1996 00:52:19 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id AAA24207; Sun, 20 Oct 1996 00:52:18 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.6/8.6.9) id AAA03744; Sun, 20 Oct 1996 00:40:33 +0200 (MET DST) From: J Wunsch Message-Id: <199610192240.AAA03744@uriah.heep.sax.de> Subject: Re: Conventions/Rules for adding Local ioctls To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Sun, 20 Oct 1996 00:40:33 +0200 (MET DST) Cc: rohit@cs.umd.edu Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199610191917.FAA17149@godzilla.zeta.org.au> from Bruce Evans at "Oct 20, 96 05:17:56 am" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Bruce Evans wrote: > >As long as you don't use one of the groups that are used by the > >generic tty or socket code, there's not much risk that you will > >conflict. (Btw., two ioctl cmds with the same group and magic number, > >but a different argument size and/or direction are still distinct from > >each other.) > > Ioctls are per-major, so there is no chance of ones for the local major > conflicting with ones for ttys. ...unless your local driver actually _is_ a tty driver. The originator of the question didn't tell us. (I meant the generic tty ioctls, all that TIOxxx stuff.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)