函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\char_dev.c Create Date:2022-07-29 10:32:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:void cdev_del(struct cdev *p)

返回类型:void

参数:

类型参数名称
struct cdev *p
593  cdev_unmap(dev, count)
594  递减引用计数对象
调用者
名称描述
__unregister_chrdev__unregister_chrdev - unregister and destroy a cdev*@major: major device number*@baseminor: first of the range of minor numbers*@count: the number of minor numbers this cdev is occupying*@name: name of this range of devices* Unregister and destroy the
cdev_device_adddev_device_add() - add a char device and it's corresponding* struct device, linkink*@dev: the device structure*@cdev: the cdev structure* cdev_device_add() adds the char device represented by @cdev to the system,* just as cdev_add does
cdev_device_deldev_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