1CDEV_DEL(9) Char devices CDEV_DEL(9)
23
4
NAME
6cdev_del - remove a cdev from the system
7
SYNOPSIS
9void cdev_del(struct cdev * p);
10
ARGUMENTS
12p
13the cdev structure to be removed
14
DESCRIPTION
16cdev_del removes p from the system, possibly freeing the structure
17itself.
18
NOTE
20This guarantees that cdev device will no longer be able to be opened,
21however any cdevs already open will remain and their fops will still be
22callable even after cdev_del returns.
23
COPYRIGHT
25Kernel Hackers Manual 3.10 June 2019 CDEV_DEL(9)