函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:find_dynamic_major

函数原型:static int find_dynamic_major(void)

返回类型:int

参数:

70 i大于等于Marks the bottom of the first segment of free char majors 循环
71  如果(chrdevs[i] == NULL)则返回:i
75 i大于等于CHRDEV_MAJOR_DYN_EXT_END循环
77 cd循环如果major恒等于i
79  退出
81  如果(cd == NULL)则返回:i
85  返回:负EBUSY
调用者
名称描述
__register_chrdev_regionRegister a single major with a specified minor range.* If major == 0 this function will dynamically allocate an unused major.* If major > 0 this function will attempt to reserve the range of minors* with given major.