函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\genhd.c Create Date:2022-07-27 18:53:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dex in the above - for now: assume no multimajor ranges

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

返回类型:int

参数:

类型参数名称
unsignedmajor
318  返回:major取模Can be deleted altogether. Later.
调用者
名称描述
blkdev_show
register_blkdevgister_blkdev - register a new block device*@major: the requested major device number [1..BLKDEV_MAJOR_MAX-1]. If*@major = 0, try to allocate any unused major number.*@name: the name of the new block device as a zero terminated string
unregister_blkdev