函数逻辑报告

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

函数名称:dex in the above

函数原型:static inline int major_to_index(unsigned major)

返回类型:int

参数:

类型参数名称
unsignedmajor
46  返回:major取模CHRDEV_MAJOR_HASH_SIZE
调用者
名称描述
chrdev_show
find_dynamic_major
__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.
__unregister_chrdev_region