Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/cdrom/cdrom.c cdrom_get_next_writable() -> cdrom_get_last_written()

Type Parameter Key Value
PARAM_VALUE 0 cdi 4096-ptr_max
PARAM_VALUE 0 cdi->ops 4096-ptr_max
PARAM_VALUE 0 cdi->ops->audio_ioctl 4096-ptr_max
PARAM_VALUE 0 cdi->ops->generic_packet 4096-ptr_max
PARAM_VALUE 0 cdi->ops->get_mcn 4096-ptr_max
PARAM_VALUE 0 cdi->ops->lock_door 4096-ptr_max
PARAM_VALUE 0 cdi->ops->open 4096-ptr_max
PARAM_VALUE 0 cdi->ops->release 4096-ptr_max
PARAM_VALUE 0 cdi->ops->reset 4096-ptr_max
PARAM_VALUE 0 cdi->ops->tray_move 4096-ptr_max
PARAM_VALUE 1 last_written 7674304747352211456
PARAM_VALUE 1 *last_written 0
DATA_SOURCE 0 cdi $0
DATA_SOURCE 1 last_written $1
LOCK2 &cd->lock
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c mmc_ioctl_cdrom_last_written() -> cdrom_get_last_written()

Type Parameter Key Value
PARAM_VALUE 0 cdi 4096-ptr_max
PARAM_VALUE 0 cdi->ops 4096-ptr_max
PARAM_VALUE 1 last_written 141016415953592320
PARAM_VALUE 1 *last_written 0
DATA_SOURCE 0 cdi $0
LOCK2 &cd->lock
TYPE_LOCK (struct scsi_cd)->lock

fs/udf/lowlevel.c udf_get_last_block() -> cdrom_get_last_written()

Type Parameter Key Value
PARAM_VALUE 0 cdi 1-u64max
PARAM_VALUE 1 last_written 8669860747453054976
PARAM_VALUE 1 *last_written 0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fc->uapi_mutex

drivers/scsi/sr.c get_sectorsize() -> cdrom_get_last_written()

Type Parameter Key Value
PARAM_VALUE 0 cdi 4096-ptr_max
PARAM_VALUE 0 cdi->handle 4096-ptr_max
PARAM_VALUE 1 last_written 6771770820900499456
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &disk->open_mutex