/[base]
ViewVC logotype

Revision 347627


Jump to revision: Previous Next
Author: ian
Date: Wed May 15 17:58:08 2019 UTC (5 years, 1 month ago)
Changed paths: 2
Log Message:
MFC r347422:

Allow dcons(4) to be unloaded when loaded as a module.

When the module is unloaded, the tty devices are destroyed.  That requires
implementing the tsw_free callback to avoid a panic.  This driver requires
no particular cleanup to be done from the callback, but the module itself
must remain in memory until the deferred tsw_free callbacks are invoked.
These changes implement that by incrementing a reference count variable in
the detach routine, and decrementing it in the tsw_free callback.  The
MOD_UNLOAD event handler doesn't return until the count drops to zero.

PR: 237758


Changed paths

Path Details
Directorystable/11/ modified , props changed
Directorystable/11/sys/dev/dcons/dcons_os.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27