函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\block_dev.c Create Date:2022-07-29 10:46:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:This routine checks whether a removable media has been changed,* and invalidates all buffer-cache-entries in that case. This* is a relatively slow routine, so we have to try to minimize using* it. Thus it is called only upon a 'mount' or 'open'. This

函数原型:int check_disk_change(struct block_device *bdev)

返回类型:int

参数:

类型参数名称
struct block_device *bdev
1484  disk等于bd_disk
1485  bdops等于fops
1488  events等于disk_clear_events(disk, DISK_EVENT_MEDIA_CHANGE | DISK_EVENT_EJECT_REQUEST)
1490  如果非events按位与DISK_EVENT_MEDIA_CHANGE的值则返回:0
1493  lush_disk - invalidates all buffer-cache entries on a disk*@bdev: struct block device to be flushed*@kill_dirty: flag to guide handling of dirty inodes* Invalidates all buffer-cache entries on a disk
1494  如果revalidate_diskrevalidate_disk(bd_disk)
1496  返回:1