From owner-freebsd-hackers Sat Oct 19 06:54:59 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA21719 for hackers-outgoing; Sat, 19 Oct 1996 06:54:59 -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 GAA21714 for ; Sat, 19 Oct 1996 06:54:53 -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 PAA26392; Sat, 19 Oct 1996 15:53:10 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id PAA14339; Sat, 19 Oct 1996 15:53:10 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.6/8.6.9) id PAA03529; Sat, 19 Oct 1996 15:51:12 +0200 (MET DST) From: J Wunsch Message-Id: <199610191351.PAA03529@uriah.heep.sax.de> Subject: Re: Conventions/Rules for adding Local ioctls To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Sat, 19 Oct 1996 15:51:12 +0200 (MET DST) Cc: rohit@cs.umd.edu (Rohit Dube) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199610182312.TAA04920@seine.cs.umd.edu> from Rohit Dube at "Oct 18, 96 07:12:43 pm" 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 Rohit Dube wrote: > I was wondering if there are any (FreeBSD/BSD/Unix) rules which specify > the definition of new local ioctls? In other words, how do I add a > 'group' and a 'num' to an ioctl command meant for local consumption, > without running the risk of conflicting with any current or future > code? 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.) -- 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. ;-)