From owner-freebsd-hackers Tue Jul 27 6:53:40 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from tornado.cisco.com (tornado.cisco.com [171.69.104.22]) by hub.freebsd.org (Postfix) with ESMTP id 5B30214C8A for ; Tue, 27 Jul 1999 06:53:32 -0700 (PDT) (envelope-from bmcgover@bmcgover-pc.cisco.com) Received: from bmcgover-pc.cisco.com (bmcgover-pc.cisco.com [171.69.104.147]) by tornado.cisco.com (8.8.5-Cisco.1/8.6.5) with ESMTP id JAA00540 for ; Tue, 27 Jul 1999 09:52:29 -0400 (EDT) Received: from bmcgover-pc.cisco.com (localhost.pa.dtd.cisco.com [127.0.0.1]) by bmcgover-pc.cisco.com (8.9.3/8.9.3) with ESMTP id JAA09275 for ; Tue, 27 Jul 1999 09:52:29 -0400 (EDT) (envelope-from bmcgover@bmcgover-pc.cisco.com) Message-Id: <199907271352.JAA09275@bmcgover-pc.cisco.com> To: hackers@freebsd.org Subject: reserved/local ioctl values? Date: Tue, 27 Jul 1999 09:52:29 -0400 From: Brian McGovern Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'l looking at defining about a dozen ioctl calls for a local device driver. When looking at the _IO, _IO, _IOW, _IOR, and _IOWR macros, I'm interested if there are any "reserved" or "local" values for the first parameter? In short, I'd hate to use a seemly unused value, just to suddenly be in conflict with a major set of ioctls (particularly terminal, as this is the type of driver it will be). Also, would it be wise to reuse an existing value? For instance, 'C' is used apparently by the SCSI system in /usr/include/cam/scsi/scsi_targetio.h, ISDN in /usr/include/machine/i4b_debug.h, and sound in /usr/include/machine/soundcard.h. In short, I want a value thats 'safe', in so far as I probably won't have to go back and redefine it later. I've been burned on thsi before (see majors.i386 in /usr/src/sys/i386/conf where 200-255 are now reserved... They weren't until post 2.2.6-ish when I spent 3 weeks doing tech support because one of the new device drivers in 2.2.8 conflicted with locally released code). Anyhow, good thoughts? -Brian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message