Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/scsi/sg.c sg_add_sfp() -> sg_build_reserve()

Type Parameter Key Value
PARAM_VALUE 0 sfp 4096-ptr_max
PARAM_VALUE 0 sfp->cmd_q 0
PARAM_VALUE 0 sfp->f_mutex.dep_map->name 0-255
PARAM_VALUE 0 sfp->f_mutex.first_waiter 0
PARAM_VALUE 0 sfp->f_mutex.magic 4096-ptr_max
PARAM_VALUE 0 sfp->f_mutex.osq.tail.counter 0
PARAM_VALUE 0 sfp->f_mutex.owner.counter 0
PARAM_VALUE 0 sfp->f_ref.refcount.refs.counter 1
PARAM_VALUE 0 sfp->force_packid 0
PARAM_VALUE 0 sfp->keep_orphan 0
PARAM_VALUE 0 sfp->parentdp 4096-ptr_max
PARAM_VALUE 0 sfp->parentdp->detaching.counter 0
PARAM_VALUE 0 sfp->parentdp->device 4096-ptr_max
PARAM_VALUE 0 sfp->read_wait.head.next 4096-ptr_max
PARAM_VALUE 0 sfp->read_wait.head.next->next 4096-ptr_max
PARAM_VALUE 0 sfp->read_wait.head.prev 4096-ptr_max
PARAM_VALUE 0 sfp->read_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 sfp->read_wait.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 sfp->rq_list.next 4096-ptr_max
PARAM_VALUE 0 sfp->rq_list.next->next 4096-ptr_max
PARAM_VALUE 0 sfp->rq_list.prev 4096-ptr_max
PARAM_VALUE 0 sfp->rq_list.prev->next 4096-ptr_max
PARAM_VALUE 0 sfp->rq_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 sfp->rq_list_lock.magic 3736018669
PARAM_VALUE 0 sfp->rq_list_lock.owner (-1)
PARAM_VALUE 0 sfp->rq_list_lock.owner_cpu u32max
PARAM_VALUE 0 sfp->sfd_siblings.next 4096-ptr_max
PARAM_VALUE 0 sfp->timeout 15000
PARAM_VALUE 0 sfp->timeout_user 6000
PARAM_VALUE 1 req_size s32min-2147483136
BUF_SIZE 0 sfp 6000
CAPPED_DATA 1 req_size 1
DATA_SOURCE 0 sfp r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &sdp->open_rel_lock
TYPE_LOCK (struct sg_device)->open_rel_lock

drivers/scsi/sg.c sg_ioctl_common() -> sg_build_reserve()

Type Parameter Key Value
PARAM_VALUE 0 sfp 4096-ptr_max
PARAM_VALUE 0 sfp->f_mutex.dep_map->name 0-255
PARAM_VALUE 0 sfp->f_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 sfp->f_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 sfp->f_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 sfp->f_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 sfp->f_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 sfp->f_mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 0 sfp->mmap_called 0
PARAM_VALUE 0 sfp->parentdp 1-u64max
PARAM_VALUE 0 sfp->res_in_use 0
PARAM_VALUE 0 sfp->reserve.bufflen 0
PARAM_VALUE 0 sfp->reserve.cmd_opcode 0
PARAM_VALUE 0 sfp->reserve.dio_in_use 0
PARAM_VALUE 0 sfp->reserve.k_use_sg 0
PARAM_VALUE 0 sfp->reserve.page_order 0
PARAM_VALUE 0 sfp->reserve.pages 0
PARAM_VALUE 0 sfp->reserve.sglist_len 0
PARAM_VALUE 1 req_size 0-2147483136
BUF_SIZE 0 sfp s32min-(-2),1-s32max
BUF_SIZE 0 sfp s32min-(-2),1-s32max
CAPPED_DATA 0 &sfp->f_mutex 1
CAPPED_DATA 1 req_size 1
DATA_SOURCE 0 sfp $2
NOSPEC 1 req_size
NOSPEC 1 req_size
MEM_ZERO 0 &sfp->reserve
NOCHECK_CALL
USER_DATA 1 req_size 0-2147483135[c]
UNITS 1 req_size unit_byte
LOCK2 0 &sfp->f_mutex
TYPE_LOCK (struct sg_fd)->f_mutex