函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:disk_add_events

函数原型:static void disk_add_events(struct gendisk *disk)

返回类型:void

参数:

类型参数名称
struct gendisk *disk
2048  如果sysfs_create_files( & kobj, disk_events_attrs)小于0则打印警告信息("%s: failed to create sysfs files for events\n", name of major driver )
2052  如果非ev则返回
2055  mutex_lock( & list of all disk_events )
2056  添加链表项
2057  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
2063  __disk_unblock_events(disk, true)
调用者
名称描述
__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