| Function report | 
| Source Code: block\genhd.c | Create Date:2022-07-28 17:20:04 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:disk_add_events
Proto:static void disk_add_events(struct gendisk *disk)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct gendisk * | disk | 
| 2048 | If sysfs_create_files( & kobj, disk_events_attrs) < 0 Then pr_warn("%s: failed to create sysfs files for events\n", name of major driver ) | 
| 2052 | If Not ev Then Return | 
| 2055 | mutex_lock( & list of all disk_events ) | 
| 2063 | __disk_unblock_events(disk, true) | 
| Name | Describe | 
|---|---|
| __device_add_disk | __device_add_disk - add disk information to kernel list*@parent: parent device for the disk*@disk: per-device partitioning information*@groups: Additional per-device sysfs groups*@register_queue: register the queue if set to true* This function registers | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |