Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dex in the above

Proto:static inline int major_to_index(unsigned major)

Type:int

Parameter:

TypeParameterName
unsignedmajor
46  Return major % CHRDEV_MAJOR_HASH_SIZE
Caller
NameDescribe
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