Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/cdrom/cdrom.c cdrom_ioctl_media_changed() -> cdrom_read_mech_status()

Type Parameter Key Value
PARAM_VALUE 0 cdi 4096-ptr_max
PARAM_VALUE 0 cdi->capacity s32min-(-1),1-s32max
PARAM_VALUE 0 cdi->ops 4096-ptr_max
PARAM_VALUE 1 buf 4096-ptr_max
BUF_SIZE 1 buf 1032
DATA_SOURCE 0 cdi $0
DATA_SOURCE 1 buf r _kmalloc_noprof
LOCK2 &cd->lock
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c cdrom_number_of_slots() -> cdrom_read_mech_status()

Type Parameter Key Value
PARAM_VALUE 0 cdi 4096-ptr_max
PARAM_VALUE 0 cdi->capacity 0
PARAM_VALUE 0 cdi->handle 4096-ptr_max
PARAM_VALUE 0 cdi->mask 0-3,8192-8195,16384-253955
PARAM_VALUE 0 cdi->ops 7423275360926306304
PARAM_VALUE 0 cdi->speed 0-1
PARAM_VALUE 1 buf 4096-ptr_max
BUF_SIZE 1 buf 1032
DATA_SOURCE 0 cdi $0
DATA_SOURCE 1 buf r _kmalloc_noprof
RX_PATH
TASK_NOT_RUNNING

drivers/cdrom/cdrom.c cdrom_select_disc() -> cdrom_read_mech_status()

Type Parameter Key Value
PARAM_VALUE 0 cdi 4096-ptr_max
PARAM_VALUE 0 cdi->ops 4096-ptr_max
PARAM_VALUE 0 cdi->ops->check_events 2627183735259357184
PARAM_VALUE 1 buf 4096-ptr_max
BUF_SIZE 1 buf 1032
DATA_SOURCE 0 cdi $0
DATA_SOURCE 1 buf r _kmalloc_noprof
LOCK2 &cd->lock
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c cdrom_slot_status() -> cdrom_read_mech_status()

Type Parameter Key Value
PARAM_VALUE 0 cdi 4096-ptr_max
PARAM_VALUE 0 cdi->capacity s32min-(-1),1-s32max
PARAM_VALUE 0 cdi->ops 4096-ptr_max
PARAM_VALUE 0 cdi->ops->capability 3931135
PARAM_VALUE 0 cdi->sanyo_slot 0
PARAM_VALUE 1 buf 4096-ptr_max
BUF_SIZE 1 buf 1032
DATA_SOURCE 0 cdi $0
DATA_SOURCE 1 buf r _kmalloc_noprof
LOCK2 &cd->lock
TYPE_LOCK (struct scsi_cd)->lock