函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:disk_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

函数原型:unsigned int disk_clear_events(struct gendisk *disk, unsigned int mask)

返回类型:unsigned int

参数:

类型参数名称
struct gendisk *disk
unsigned intmask
1794  bdops等于fops
1795  ev等于ev
1797  clearing等于mask
1799  如果非ev
1801  如果mask按位与DISK_EVENT_MEDIA_CHANGEmedia_changedmedia_changed(disk)则返回:DISK_EVENT_MEDIA_CHANGE
1804  返回:0
1807  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()
1814  spin_lock_irq( & lock)
1815  clearing或等于vents being cleared
1816  vents being cleared 等于0
1817  spin_unlock_irq( & lock)
1819  disk_check_events(ev, & clearing)
1824  __disk_unblock_events(disk, vents being cleared ? true : false)
1827  spin_lock_irq( & lock)
1828  pending等于vents already sent out 按位与mask
1829  vents already sent out 与等于mask的反
1830  spin_unlock_irq( & lock)
1831  WARN_ON_ONCE(clearing & mask)
1833  返回:pending