Defined in 1 files as a function:

Referenced in 8 files:

Smatch caller information:

drivers/scsi/sg.c sg_alloc() -> queue_max_segments()

Type Parameter Key Value
PARAM_VALUE 0 q 4096-ptr_max
LOCK2 &sp->mutex
LOCK2 global &sg_index_lock
LOCK2 iflags
TYPE_LOCK (struct subsys_private)->mutex

drivers/scsi/sg.c sg_open() -> queue_max_segments()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &sdp->open_rel_lock
TYPE_LOCK (struct sg_device)->open_rel_lock

block/blk-mq.c blk_rq_get_max_segments() -> queue_max_segments()

Type Parameter Key Value
PARAM_VALUE 0 q 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read

drivers/scsi/sd_zbc.c sd_zbc_alloc_report_buffer() -> queue_max_segments()

Type Parameter Key Value
PARAM_VALUE 0 q 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock

drivers/nvme/host/zns.c nvme_zns_alloc_report_buffer() -> queue_max_segments()

Type Parameter Key Value
PARAM_VALUE 0 q 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &head->srcu

block/blk-merge.c blk_rq_get_max_segments() -> queue_max_segments()

Type Parameter Key Value
PARAM_VALUE 0 q 4096-ptr_max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 q->async_depth
NO_OVERFLOW_SIMPLE 0 q->limits.discard_granularity
NO_OVERFLOW_SIMPLE 0 q->limits.max_discard_sectors
NO_OVERFLOW_SIMPLE 0 q->limits.max_hw_discard_sectors
NO_OVERFLOW_SIMPLE 0 q->limits.max_open_zones
NO_OVERFLOW_SIMPLE 0 q->limits.physical_block_size
NO_OVERFLOW_SIMPLE 0 q->limits.zone_write_granularity
NO_OVERFLOW_SIMPLE 0 q->nr_hw_queues
NO_OVERFLOW_SIMPLE 0 q->nr_requests
NO_OVERFLOW_SIMPLE 0 q->q_usage_counter.percpu_count_ptr

drivers/block/virtio_blk.c virtblk_alloc_report_buffer() -> queue_max_segments()

Type Parameter Key Value
PARAM_VALUE 0 q 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock

drivers/block/rnbd/rnbd-srv.c bdev_max_segments() -> queue_max_segments()

Type Parameter Key Value
LOCK2 &srv_sess->lock
TYPE_LOCK (struct rnbd_srv_session)->lock

drivers/scsi/st.c st_probe() -> queue_max_segments()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING