cdev_device_del(9)

cdev_device_del9

Inverse of cdev_device_add

Usage

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

Arguments

cdev

the cdev structure

dev

the device structure

Overview

cdev_device_del is a helper function to call cdev_del and device_del. It should be used whenever cdev_device_add is used.

If dev->devt is not set it will not remove the cdev and will be equivalent to device_del.

Note

This guarantees that associated sysfs callbacks are not running or runnable, however any cdevs already open will remain and their fops will still be callable even after this function returns.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.