ian 23ca26e1d6 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
2019-05-10 02:30:16 +00:00
..
2019-05-09 23:03:10 +00:00
2019-05-02 12:56:13 +00:00
2019-05-08 19:27:30 +00:00
2019-02-21 01:30:37 +00:00
2019-04-19 22:08:17 +00:00
2019-05-08 02:32:11 +00:00
2019-05-09 21:00:15 +00:00
2019-05-08 10:55:47 +00:00
2019-02-04 21:28:25 +00:00
2019-05-06 08:46:11 +00:00