Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Nov 2001 07:10:53 -0800 (PST)
From:      Dima Dorfman <dd@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/snp snp.c
Message-ID:  <200111241510.fAOFArU27308@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

dd          2001/11/24 07:10:53 PST

  Modified files:
    sys/dev/snp          snp.c 
  Log:
  Create a snpbasedev variable which holds a reference to the first snp
  device cloned, and assign all further devices to depend on it.  This
  allows us to call dev_depends() on it at module unload time to get rid
  of /dev/snp* (in the devfs case, anyway).  For this to work, we must
  not destroy the device at close time.  [Idea stolen from if_tun.]
  
  The above has the following sideaffects: (a) The snp device used by
  watch(8) will remain after watch(8) exits.  This is probably how it
  should have been all along, and how it was before devfs came along.
  (b) Module unload doesn't panic if there are any /dev/snp* devices
  which haven't been used (and thus previously destroyed).  Thus, we can
  reenable the unload functionality disabled in rev. 1.65.
  
  PR:             32012
  
  Revision  Changes    Path
  1.67      +9 -3      src/sys/dev/snp/snp.c

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




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