sys/dev/disk/dm/dm_pdev.c
int
dm_pdev_uninit(void)
{
	dm_pdev_t *dm_pdev;

	lockmgr(&dm_pdev_mutex, LK_EXCLUSIVE);
	while (!SLIST_EMPTY(&dm_pdev_list)) {	/* List Deletion. */

		dm_pdev = SLIST_FIRST(&dm_pdev_list);

		SLIST_REMOVE_HEAD(&dm_pdev_list, next_pdev);

		dm_pdev_rem(dm_pdev);
	}
	lockmgr(&dm_pdev_mutex, LK_RELEASE);

	lockuninit(&dm_pdev_mutex);
	return 0;
}
/*
 * Destroy all existing pdev's in device-mapper.
 */
Destroy all existing pdev's in device-mapper.
Destroy all existing pdev ' s in device - mapper .
int
dm_pdev_uninit(void)
{
	dm_pdev_t *dm_pdev;
	lockmgr(&dm_pdev_mutex, LK_EXCLUSIVE);
	while (!SLIST_EMPTY(&dm_pdev_list)) {	
		dm_pdev = SLIST_FIRST(&dm_pdev_list);
		SLIST_REMOVE_HEAD(&dm_pdev_list, next_pdev);
		dm_pdev_rem(dm_pdev);
	}
	lockmgr(&dm_pdev_mutex, LK_RELEASE);
	lockuninit(&dm_pdev_mutex);
	return 0;
}
int dm_pdev_uninit ( void ) { dm_pdev_t * dm_pdev ; lockmgr ( & dm_pdev_mutex , LK_EXCLUSIVE ) ; while ( ! SLIST_EMPTY ( & dm_pdev_list ) ) { dm_pdev = SLIST_FIRST ( & dm_pdev_list ) ; SLIST_REMOVE_HEAD ( & dm_pdev_list , next_pdev ) ; dm_pdev_rem ( dm_pdev ) ; } lockmgr ( & dm_pdev_mutex , LK_RELEASE ) ; lockuninit ( & dm_pdev_mutex ) ; return 0 ; }
Destroy all existing pdev's in device-mapper.
Destroy all existing pdev ' s in device - mapper .
/* List Deletion. */