FreeBSD/sys/kern/kern_conf.c
/*
 * This function will delist a character device and its children from
 * the directory listing and create a destroy event without waiting
 * for all character device references to go away. At some later point
 * destroy_dev() must be called to complete the character device
 * destruction. After calling this function the character device name
 * can instantly be re-used.
 */
This function will delist a character device and its children from
the directory listing and create a destroy event without waiting
for all character device references to go away. At some later point
destroy_dev() must be called to complete the character device
destruction. After calling this function the character device name
can instantly be re-used.
This function will delist a character device and its children from the directory listing and create a destroy event without waiting for all character device references to go away . At some later point destroy_dev () must be called to complete the character device destruction . After calling this function the character device name can instantly be re - used .
void
delist_dev(struct cdev *dev)
{
	WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, "delist_dev");
	dev_lock();
	delist_dev_locked(dev);
	dev_unlock();
}
void delist_dev ( struct cdev * dev ) { WITNESS_WARN ( WARN_GIANTOK | WARN_SLEEPOK , NULL , " " ) ; dev_lock ( ) ; delist_dev_locked ( dev ) ; dev_unlock ( ) ; }
This function will delist a character device and its children from
 the directory listing and create a destroy event without waiting
 for all character device references to go away.
This function will delist a character device and its children from the directory listing and create a destroy event without waiting for all character device references to go away .