Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 10 files:
- block/disk-events.c, line 284
- drivers/block/amiflop.c, line 1677
- drivers/block/ataflop.c
- drivers/block/floppy.c
- drivers/block/swim.c, line 641
- drivers/block/swim3.c, line 966
- drivers/cdrom/gdrom.c, line 481
- drivers/md/md.c, line 8589
- drivers/scsi/sd.c, line 1583
- drivers/scsi/sr.c, line 505
Smatch caller information:
drivers/block/floppy.c floppy_open() -> disk_check_media_change()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | disk | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->fops | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->fops->open | 4096-ptr_max |
| CAPPED_DATA | 0 | disk | 1 |
| DATA_SOURCE | 0 | disk | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &disk->open_mutex | ||
| LOCK2 | global &floppy_mutex | ||
| LOCK2 | global &open_lock | ||
| TYPE_LOCK | (struct gendisk)->open_mutex |
drivers/block/floppy.c invalidate_drive() -> disk_check_media_change()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | disk | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->fops->pr_ops->pr_read_reservation | 1421210042509553664,1710587714100891648,2566992871418122240 |
| DATA_SOURCE | 0 | disk | $0 |
| LOCK2 | global &floppy_mutex |
drivers/md/md.c md_open() -> disk_check_media_change()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | disk | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->fops | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->fops->open | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->private_data | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->private_data->active.counter | s32min-s32max |
| DATA_SOURCE | 0 | disk | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &disk->open_mutex | ||
| TYPE_LOCK | (struct gendisk)->open_mutex |
drivers/scsi/sd.c sd_need_revalidate() -> disk_check_media_change()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | disk | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->fops | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->fops->open | 4096-ptr_max |
| DATA_SOURCE | 0 | disk | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &disk->open_mutex | ||
| TYPE_LOCK | (struct gendisk)->open_mutex |
drivers/scsi/sr.c sr_block_open() -> disk_check_media_change()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | disk | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->fops | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->fops->open | 4096-ptr_max |
| DATA_SOURCE | 0 | disk | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &disk->open_mutex | ||
| TYPE_LOCK | (struct gendisk)->open_mutex |