函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void unregister_chrdev_region(dev_t from, unsigned count)

返回类型:void

参数:

类型参数名称
dev_tfrom
unsignedcount
313  to等于fromcount
316 n小于to循环
317  next等于MKDEV(MAJOR(n) + 1, 0)
318  如果next大于tonext等于to
320  释放内存