From owner-freebsd-hackers Mon Jan 15 16:49:20 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 9D03837B6BF for ; Mon, 15 Jan 2001 16:49:03 -0800 (PST) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id f0G0n3l05087 for freebsd-hackers@freebsd.org; Mon, 15 Jan 2001 16:49:03 -0800 Date: Mon, 15 Jan 2001 16:49:03 -0800 From: Brooks Davis To: freebsd-hackers@freebsd.org Subject: ioctl question Message-ID: <20010115164903.A4620@Odin.AC.HMC.Edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've got a probably stupid question about ioctls. I need to add a pair of them for network iterfaces and I've figured out how the _IO{R,W,RW} macros work, but I can't seem to figure out how you choose the unique number you pass to them. Is there a central table somewhere or do you actually have to grep /usr/src/sys to find the largest one? On a temporary basis, I just stole the numbers of an ioctl my changes are obsoleting, but since that breaks code I don't have the hardware to test fixes for, it's not going to cut it for an actual release. Thanks, Brooks -- Any statement of the form "X is the one, true Y" is FALSE. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message