Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\genhd.c Create Date:2022-07-28 17:18:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:genhd_device_init

Proto:static int __init genhd_device_init(void)

Type:int

Parameter:Nothing

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  If Value for the false possibility is greater at compile time(error) Then Return 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  If Not sysfs_deprecated Then block_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  Return 0