Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 May 1997 19:37:23 +0200
From:      j@uriah.heep.sax.de (J Wunsch)
To:        hackers@FreeBSD.ORG
Cc:        flash@hway.ru (Alexander V. Tischenko)
Subject:   Re: Character device major id allocation
Message-ID:  <19970509193723.YF12662@uriah.heep.sax.de>
In-Reply-To: <Pine.BSI.3.96.SK.970509164918.12907A-100000@thorin.hway.ru>; from Alexander V. Tischenko on May 9, 1997 16:59:55 %2B0400
References:  <Pine.BSI.3.96.SK.970509164918.12907A-100000@thorin.hway.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
As Alexander V. Tischenko wrote:

> If there is any interest in the package will it be possible 
> to assign a major number to it ?

You can always have a look at /sys/i386/conf/majors.i386.  The next
free one is 81.  /sys/i386/i386/conf.c is long since gone, so all
you do in your file is to

#define MYMAJOR 81

static struct cdevsw my_cdevsw =
	{ my_open, ... };

If you have to change it again before importing it into the tree, it's
no big deal.

-- 
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?19970509193723.YF12662>