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:register_chrdev_region() - unregister a range of device numbers*@from: the first in the range of numbers to unregister*@count: the number of device numbers to unregister* This function will unregister a range of @count device numbers,* starting with @from

Proto:void unregister_chrdev_region(dev_t from, unsigned count)

Type:void

Parameter:

TypeParameterName
dev_tfrom
unsignedcount
313  to = from + count
316  When n < to cycle
317  next = MKDEV(MAJOR(n) + 1, 0)
318  If next > to Then next = to
320  kfree(__unregister_chrdev_region(MAJOR(n), MINOR(n), next - n))