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:find_dynamic_major

Proto:static int find_dynamic_major(void)

Type:int

Parameter:Nothing

70  When i >= Marks the bottom of the first segment of free char majors cycle
71  If (chrdevs[i] == NULL) Then Return i
75  When i >= CHRDEV_MAJOR_DYN_EXT_END cycle
77  When cd cycle If major == i Then
79  Break
81  If (cd == NULL) Then Return i
85  Return -EBUSY
Caller
NameDescribe
__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.