* 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. */
| 1223 | * can instantly be re-used. |
| 1224 | */ |
| 1225 | void |
| 1226 | delist_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 | |
| 1235 | void |
| 1236 | destroy_dev(struct cdev *dev) |
nothing calls this directly
no test coverage detected