Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Oct 1996 15:51:12 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-hackers@freebsd.org (FreeBSD hackers)
Cc:        rohit@cs.umd.edu (Rohit Dube)
Subject:   Re: Conventions/Rules for adding Local ioctls
Message-ID:  <199610191351.PAA03529@uriah.heep.sax.de>
In-Reply-To: <199610182312.TAA04920@seine.cs.umd.edu> from Rohit Dube at "Oct 18, 96 07:12:43 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610191351.PAA03529>