Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
fs/btrfs/zoned.c btrfs_check_zoned_mode() -> blk_validate_limits()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | lim | 4096-ptr_max |
| PARAM_VALUE | 0 | lim->atomic_write_boundary_sectors | 0 |
| PARAM_VALUE | 0 | lim->atomic_write_max_sectors | 0 |
| PARAM_VALUE | 0 | lim->atomic_write_unit_max | 0 |
| PARAM_VALUE | 0 | lim->atomic_write_unit_min | 0 |
| PARAM_VALUE | 0 | lim->discard_alignment | 0-4294967294 |
| PARAM_VALUE | 0 | lim->discard_granularity | 1-u32max |
| PARAM_VALUE | 0 | lim->dma_pad_mask | 0 |
| PARAM_VALUE | 0 | lim->integrity.csum_type | 0 |
| PARAM_VALUE | 0 | lim->integrity.flags | 0 |
| PARAM_VALUE | 0 | lim->integrity.interval_exp | 0 |
| PARAM_VALUE | 0 | lim->integrity.metadata_size | 0 |
| PARAM_VALUE | 0 | lim->integrity.pi_offset | 0 |
| PARAM_VALUE | 0 | lim->integrity.pi_tuple_size | 0 |
| PARAM_VALUE | 0 | lim->integrity.tag_size | 0 |
| PARAM_VALUE | 0 | lim->max_active_zones | 0 |
| PARAM_VALUE | 0 | lim->max_dev_sectors | 8-u32max |
| PARAM_VALUE | 0 | lim->max_fast_segment_size | 0 |
| PARAM_VALUE | 0 | lim->max_hw_sectors | 8-u32max |
| PARAM_VALUE | 0 | lim->max_open_zones | 0 |
| PARAM_VALUE | 0 | lim->max_sectors | 8-u32max |
| PARAM_VALUE | 0 | lim->max_user_discard_sectors | u32max |
| PARAM_VALUE | 0 | lim->max_write_streams | 0 |
| PARAM_VALUE | 0 | lim->max_wzeroes_unmap_sectors | 0 |
| PARAM_VALUE | 0 | lim->max_zone_append_sectors | 0 |
| PARAM_VALUE | 0 | lim->write_stream_granularity | 0 |
| BUF_SIZE | 0 | lim | 200 |
| MEM_ZERO | 0 | lim |
block/blk-settings.c blk_set_default_limits() -> blk_validate_limits()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | lim | 4096-ptr_max |
| PARAM_VALUE | 0 | lim->features | 0,3,64-65,67,96,144-8848,21136,22160 |
| PARAM_VALUE | 0 | lim->flags | 0 |
| PARAM_VALUE | 0 | lim->max_user_discard_sectors | u32max |
| PARAM_VALUE | 0 | lim->max_user_wzeroes_unmap_sectors | u32max |
| BUF_SIZE | 0 | lim | (-1),200 |
| BUF_SIZE | 0 | lim | (-1),200 |
| DATA_SOURCE | 0 | lim | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | lim->discard_granularity | 0-u32max |
| HOST_DATA | 0 | lim->logical_block_size | 0-u32max |
| HOST_DATA | 0 | lim->max_active_zones | 0-u32max |
| HOST_DATA | 0 | lim->max_open_zones | 0-u32max |
block/blk-settings.c queue_limits_commit_update() -> blk_validate_limits()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | lim | 4096-ptr_max |
| BUF_SIZE | 0 | lim | (-1)-0,200 |
| BUF_SIZE | 0 | lim | (-1)-0,200 |
| DATA_SOURCE | 0 | lim | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | lim->max_hw_sectors | 1-u32max[c] |
| HOST_DATA | 0 | lim->max_integrity_segments | 0-u16max |
| HOST_DATA | 0 | lim->max_segments | 0-u16max[c] |
| USER_DATA | 0 | lim->io_min | 1-u32max |
| USER_DATA | 0 | lim->logical_block_size | 1-u32max |
| USER_DATA | 0 | lim->max_hw_wzeroes_unmap_sectors | 0-u32max[c] |
| USER_DATA | 0 | lim->max_write_zeroes_sectors | 0-u32max[c] |
| USER_DATA | 0 | lim->physical_block_size | 1-u32max |
| NO_OVERFLOW_SIMPLE | 0 | lim->discard_granularity | |
| NO_OVERFLOW_SIMPLE | 0 | lim->max_open_zones | |
| LOCK2 | &q->limits_lock | ||
| HALF_LOCKED2 | &disk->open_mutex | ||
| HALF_LOCKED2 | &lo->lo_mutex | ||
| HALF_LOCKED2 | &mddev->reconfig_mutex | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &shost->scan_mutex | ||
| TYPE_LOCK | (struct request_queue)->limits_lock |