cvs commit: src/sys/conf majors

Ruslan Ermilov ru at freebsd.org
Mon Feb 2 14:28:21 PST 2004


On Mon, Feb 02, 2004 at 02:25:16PM -0800, Paul Saab wrote:
> Ruslan Ermilov (ru at FreeBSD.org) wrote:
> > What PHK means is that if this driver is both for 5.x and 4.x,
> > then you should only register its major in RELENG_4 -- 5.x
> > provides automatic major numbers allocations:
> 
> And it will run in RELENG_4 as well as -current, so it needs a major
> number.
> 
In -current the major numbers are allocated dynamically when you
register a device with DEVFS -- this way you can have more than
255 drivers in the system, and use 255 of them simultaneously.
By (unnecessarily) reserving the major in -current you reduce the
pool for dynamic major allocations by one.


Cheers,
-- 
Ruslan Ermilov
FreeBSD committer
ru at FreeBSD.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-all/attachments/20040203/878bcf57/attachment-0001.bin


More information about the cvs-all mailing list