MCPcopy Create free account
hub / github.com/F-Stack/f-stack / delist_dev

Function delist_dev

freebsd/kern/kern_conf.c:1225–1233  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

1223 * can instantly be re-used.
1224 */
1225void
1226delist_dev(struct cdev *dev)
1227{
1228
1229 WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, "delist_dev");
1230 dev_lock();
1231 delist_dev_locked(dev);
1232 dev_unlock();
1233}
1234
1235void
1236destroy_dev(struct cdev *dev)

Callers

nothing calls this directly

Calls 3

dev_lockFunction · 0.85
delist_dev_lockedFunction · 0.85
dev_unlockFunction · 0.85

Tested by

no test coverage detected