Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__disk_unblock_events

Proto:static void __disk_unblock_events(struct gendisk *disk, bool check_now)

Type:void

Parameter:

TypeParameterName
struct gendisk *disk
boolcheck_now
1715  ev = ev
1719  spin_lock_irqsave( & lock, flags)
1721  If WARN_ON_ONCE(vent blocking depth <= 0) Then Go to out_unlock
1724  If --vent blocking depth Then Go to out_unlock
1727  intv = disk_events_poll_jiffies(disk)
1728  If check_now Then queue_delayed_work - queue work on a workqueue after delay*@wq: workqueue to use*@dwork: delayable work to queue*@delay: number of jiffies to wait before queueing* Equivalent to queue_delayed_work_on() but tries to use the local CPU.
1731  Else if intv Then queue_delayed_work - queue work on a workqueue after delay*@wq: workqueue to use*@dwork: delayable work to queue*@delay: number of jiffies to wait before queueing* Equivalent to queue_delayed_work_on() but tries to use the local CPU.
1734  out_unlock :
1735  spin_unlock_irqrestore( & lock, flags)
Caller
NameDescribe
disk_unblock_eventsdisk_unblock_events - unblock disk event checking*@disk: disk to unblock events for* Undo disk_block_events(). When the block count reaches zero, it* starts events polling if configured.* CONTEXT:* Don't care. Safe to call from irq context.
disk_clear_eventsdisk_clear_events - synchronously check, clear and return pending events*@disk: disk to fetch and clear events from*@mask: mask of events to be fetched and cleared* Disk events are synchronously checked and pending events in @mask
disk_events_poll_msecs_store
disk_add_events