Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\char_dev.c Create Date:2022-07-28 20:02:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dev_device_del() - inverse of cdev_device_add*@dev: the device structure*@cdev: the cdev structure* cdev_device_del() is a helper function to call cdev_del and device_del

Proto:void cdev_device_del(struct cdev *cdev, struct device *dev)

Type:void

Parameter:

TypeParameterName
struct cdev *cdev
struct device *dev
570  device_del(dev)
571  If dev_t, creates the sysfs "dev" Then dev_del() - remove a cdev from the system*@p: the cdev structure to be removed* cdev_del() removes @p from the system, possibly freeing the structure* itself