Subject: allocating device majors
To: None <tech-kern@netbsd.org>
From: Alfred Perlstein <bright@mu.org>
List: tech-kern
Date: 02/11/2002 11:31:43
A couple of questions about device drivers and device driver modules:

What's the best way to allocate a cdev major number for a propiatary
device?

I was looking at the mac68k floppy module and it hadcodes '43' as
the cdev.  Is there a namespace/range to use that hopefully won't
conflict with future netbsd device major assignments?

Is there a definitive list of what's allocated for what?

Lastly, my device is really just a rendevous point for issuing
ioctls into the kernel, is there standard functions for
sticking in the cdev for open/close that return 0 (success) and
for read/write that return ENODEV?

thanks,
-- 
-Alfred Perlstein [alfred@freebsd.org]
'Instead of asking why a piece of software is using "1970s technology,"
 start asking why software is ignoring 30 years of accumulated wisdom.'
Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/