Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Feb 2003 06:46:51 -0800 (PST)
From:      Poul-Henning Kamp <phk@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_conf.c src/sys/sys conf.h
Message-ID:  <200302271446.h1REkpIk085846@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
phk         2003/02/27 06:46:51 PST

  Modified files:
    sys/kern             kern_conf.c 
    sys/sys              conf.h 
  Log:
  Add support for allocating a device driver major number on demand.
  
  To do this, initialize the d_maj member of the cdevsw to MAJOR_AUTO.
  When the cdevsw is first passed to make_dev() a free major number
  will be assigned.
  
  Until we have a bit more experience with this a printf will announce
  this fact.
  
  Major numbers are not reclaimed, so loading/unloading the same
  device driver which uses MAJOR_AUTO will eventually deplete the
  pool of free major numbers and the system will panic when it can
  not allocate one.  Still undecided who to invonvenience with the
  solution to this.
  
  Revision  Changes    Path
  1.125     +15 -2     src/sys/kern/kern_conf.c
  1.165     +2 -0      src/sys/sys/conf.h

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-src" in the body of the message




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