Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__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

Proto:void __unregister_chrdev(unsigned int major, unsigned int baseminor, unsigned int count, const char *name)

Type:void

Parameter:

TypeParameterName
unsigned intmajor
unsigned intbaseminor
unsigned intcount
const char *name
340  cd = __unregister_chrdev_region(major, baseminor, count)
341  If cd && will die 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
343  kfree(cd)
Caller
NameDescribe
msr_exit
cpuid_init
cpuid_exit