1CDEV_DEVICE_DEL(9)               Char devices               CDEV_DEVICE_DEL(9)
2
3
4

NAME

6       cdev_device_del - inverse of cdev_device_add
7

SYNOPSIS

9       void cdev_device_del(struct cdev * cdev, struct device * dev);
10

ARGUMENTS

12       cdev
13           the cdev structure
14
15       dev
16           the device structure
17

DESCRIPTION

19       cdev_device_del is a helper function to call cdev_del and device_del.
20       It should be used whenever cdev_device_add is used.
21
22       If dev->devt is not set it will not remove the cdev and will be
23       equivalent to device_del.
24

NOTE

26       This guarantees that associated sysfs callbacks are not running or
27       runnable, however any cdevs already open will remain and their fops
28       will still be callable even after this function returns.
29
31Kernel Hackers Manual 3.10         June 2019                CDEV_DEVICE_DEL(9)
Impressum