函数逻辑报告 |
Source Code:block\genhd.c |
Create Date:2022-07-27 18:55:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:disk_alloc_events
函数原型:static void disk_alloc_events(struct gendisk *disk)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct gendisk * | disk |
2025 | 如果非check_events或非 supported events 则返回 |
2029 | 如果非ev则 |
2030 | 打印警告信息("%s: failed to initialize events\n", name of major driver ) |
2031 | 返回 |
2034 | 初始化链表头 |
2035 | he associated disk 等于disk |
2036 | spin_lock_init( & lock) |
2037 | mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & protects blocking ) |
2038 | vent blocking depth 等于1 |
2039 | rval, -1 for default 等于负1 |
2040 | INIT_DELAYED_WORK( & dwork, Separate this part out so that a different pointer for clearing_ptr can be* passed in for disk_clear_events.) |
名称 | 描述 |
---|---|
__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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |