Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jul 2001 15:10:36 -0700 (PDT)
From:      Joerg Wunsch <joerg@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/isa fd.c
Message-ID:  <200107042210.f64MAa704405@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
joerg       2001/07/04 15:10:36 PDT

  Modified files:
    sys/isa              fd.c 
  Log:
  More cleanup when detaching.  Clone device entries will now be
  destroyed properly (otherwise bad things would happen after a clone
  dev had been created, and the module was kldunloaded).  Allocated
  children that have not successfully probed are being deleted again
  (otherwise fd0 and fd1 have always been allocated, even if only
  fd0 was acutally present, and fd1 even survived kldunloading the
  module).
  
  Still, kldunloading leaves remnants of the previously existing devices
  intact.  Why doesn't it destroy all the devices?  As a consequence,
  since dev->descr now points into no longer allocated memory, the
  system panics deep inside printf(9) when running devinfo(1) after
  kldunloading the module.  Ideas sought...
  
  Also, when kldloading the module on a hints-populated isab0, this bus
  somehow has already created an fdc0 entry (a dummy) so the load
  attempt fails and will register fdc1 instead.  What are those dummy
  entries for?  Loading the module from the bootloader works, and it
  can be unloaded an re-loaded then later.
  
  Revision  Changes    Path
  1.211     +42 -18    src/sys/isa/fd.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?200107042210.f64MAa704405>