函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:disk_alloc_events

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

返回类型:void

参数:

类型参数名称
struct gendisk *disk
2025  如果非check_events或非 supported events 则返回
2028  ev等于分配内存并置零
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.)
2042  ev等于ev
调用者
名称描述
__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