Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:disk_block_events - block and flush disk event checking*@disk: disk to block events for* On return from this function, it is guaranteed that event checking* isn't in progress and won't happen until unblocked by* disk_unblock_events()

Proto:void disk_block_events(struct gendisk *disk)

Type:void

Parameter:

TypeParameterName
struct gendisk *disk
1690  ev = ev
1694  If Not ev Then Return
1701  mutex_lock( & protects blocking )
1703  spin_lock_irqsave( & lock, flags)
1704  cancel = Not vent blocking depth ++
1705  spin_unlock_irqrestore( & lock, flags)
1707  If cancel Then ancel_delayed_work_sync - cancel a delayed work and wait for it to finish*@dwork: the delayed work cancel* This is cancel_work_sync() for delayed works.* Return:* %true if @dwork was pending, %false otherwise.
1710  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.
Caller
NameDescribe
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_del_events
blkdev_getlkdev_get - open a block device*@bdev: block_device to open*@mode: FMODE_* mask*@holder: exclusive holder identifier* Open @bdev with @mode. If @mode includes %FMODE_EXCL, @bdev is* open with exclusive access. Specifying %FMODE_EXCL with %NULL