函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:genhd_device_init

函数原型:static int __init genhd_device_init(void)

返回类型:int

参数:

1098  dev_kobj等于sysfs_dev_block_kobj
1099  error等于This is a #define to keep the compiler from merging different* instances of the __key variable ( & block_class)
1100  如果此条件成立可能性小(为编译器优化)(error)则返回:error
1102  bdev_map等于kobj_map_init(base_probe, & block_class_lock)
1103  blk_dev_init()
1105  gister_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
1108  如果非sysfs_deprecatedblock_depr等于kobject_create_and_add() - Create a struct kobject dynamically and* register it with sysfs.*@name: the name for the kobject*@parent: the parent kobject of this kobject, if any.* This function creates a kobject structure dynamically and registers it
1110  返回:0