NetBSD/sys/dev/dm
pgoyette 97f8debd62 For device modules that provide both auto-config and /dev/xxx
interfaces, make sure that initialization and destruction
follow the proper sequence.  This is triggered by the recent
changes to the devsw stuff; per riastradh@ the required call
sequence is:

	devsw_attach()
	config_init_component() or config_cf*_attach()
	...
	config_fini_component() or config_cf*_detach()
	devsw_detach()

While here, add a few missing calls to some of the detach
routines.

Testing of these changes has been limited to:
	1. compile without build break
	2. no related test failures from atf
	3. modload/modunload work as well as
	   before.

No functional device testing done, since I don't have any
of these devices.  Let me know of any damage I might cause
here!

XXX Some of the modules affected by this commit are already
XXX broken;  see kern/56772.  This commit does not break
any additional modules (as far as I know).
2022-03-31 19:30:15 +00:00
..
doc
Makefile
TODO
device-mapper.c
dm.h
dm_dev.c
dm_ioctl.c
dm_pdev.c
dm_table.c
dm_target.c
dm_target_delay.c
dm_target_error.c
dm_target_flakey.c
dm_target_linear.c
dm_target_mirror.c
dm_target_snapshot.c
dm_target_stripe.c
dm_target_zero.c
files.dm
netbsd-dm.h