Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Oct 2008 19:11:44 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/dev/uart uart_tty.c
Message-ID:  <200810251806.m9PI63Zt099446@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ed          2008-10-23 19:11:44 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/uart         uart_tty.c 
  Log:
  SVN rev 184208 on 2008-10-23 19:11:44Z by ed
  
  Fix detaching of uart(4) devices.
  
  With our new TTY layer we use a two step device destruction procedure.
  The TTY first gets abandoned by the device driver. When the TTY layer
  notices all threads have left the TTY layer, it deallocates the TTY.
  
  This means that the device unit number should not be reused before a
  callback from the TTY layer to the device driver has been made. newbus
  doesn't seem to support this concept (yet), so right now just add a
  destructor with a big comment in it. It's not ideal, but at least it's
  better than panicing.
  
  Reported by:    rnoland
  
  Revision  Changes    Path
  1.31      +13 -0     src/sys/dev/uart/uart_tty.c



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