Defined in 2 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/md/dm-cache-target.c abort_transaction() -> get_cache_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| BUF_SIZE | 0 | s | (-1),16,40-s32max |
| BUF_SIZE | 0 | s | (-1),16,40-s32max |
| DATA_SOURCE | 0 | s | $0 |
| STR_LEN | 0 | s | 15,20,22-23,30 |
| STR_LEN | 0 | s | 15,20,22-23,30 |
| NO_OVERFLOW_SIMPLE | 0 | s->cmd->dirty_info.array_info.btree_info.tm->bm->bufio->block_size | |
| NO_OVERFLOW_SIMPLE | 0 | s->cmd->hint_cursor.info->btree_info.tm->real->bm->bufio->block_size | |
| NO_OVERFLOW_SIMPLE | 0 | s->cmd->hint_info.btree_info.tm->bm->bufio->block_size | |
| NO_OVERFLOW_SIMPLE | 0 | s->cmd->info.btree_info.tm->real->bm->bufio->block_size | |
| NO_OVERFLOW_SIMPLE | 0 | s->cmd->mapping_cursor.info->btree_info.tm->real->bm->bufio->block_size | |
| HALF_LOCKED2 | &md->suspend_lock | ||
| HALF_LOCKED2 | 0 | &s->background_work_lock |
drivers/md/dm-cache-target.c cache_create() -> get_cache_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->features.mode | 0-2 |
| BUF_SIZE | 0 | s | 2416 |
| BUF_SIZE | 0 | s->cmd | (-1),1920 |
| CAPPED_DATA | 0 | s->cache_size | 1 |
| CAPPED_DATA | 0 | s->sectors_per_block | 1 |
| CAPPED_DATA | 0 | s->ti->begin | 1 |
| DATA_SOURCE | 0 | s | r _kzalloc_noprof |
| STR_LEN | 0 | s->ti->error | 13 |
| TERMINATED | 0 | s->ti->error | 1 |
| USER_DATA | 0 | s->migration_threshold | 0-u64max |
| NO_OVERFLOW_SIMPLE | 0 | s->origin_sectors | |
| NO_OVERFLOW_SIMPLE | 0 | s->ti->begin | |
| NO_OVERFLOW_SIMPLE | 0 | s->ti->len | |
| HALF_LOCKED2 | &md->type_lock |
drivers/md/dm-cache-target.c cache_message() -> get_cache_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | s | 16,40-s32max |
| BUF_SIZE | 0 | s | 16,40-s32max |
| LOCK2 | &md->io_barrier | ||
| TYPE_LOCK | (struct mapped_device)->io_barrier |
drivers/md/dm-cache-target.c cache_postsuspend() -> get_cache_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| BUF_SIZE | 0 | s | 16,40-s32max |
| BUF_SIZE | 0 | s | 16,40-s32max |
| LOCK2 | 0 | &s->background_work_lock | |
| HALF_LOCKED2 | &md->io_barrier | ||
| HALF_LOCKED2 | &md->suspend_lock | ||
| TYPE_LOCK | (struct cache)->background_work_lock | ||
| TYPE_LOCK | (struct mapped_device)->suspend_lock |
drivers/md/dm-cache-target.c cache_status() -> get_cache_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | s | 16,40-s32max |
| BUF_SIZE | 0 | s | 16,40-s32max |
| LOCK2 | &md->io_barrier | ||
| TYPE_LOCK | (struct mapped_device)->io_barrier |
drivers/md/dm-cache-target.c cache_status() -> get_cache_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| BUF_SIZE | 0 | s | 16,40-s32max |
| BUF_SIZE | 0 | s | 16,40-s32max |
| NO_OVERFLOW_SIMPLE | 0 | s->cmd->bm->bufio->slab_buffer->object_size | |
| LOCK2 | &md->io_barrier | ||
| TYPE_LOCK | (struct mapped_device)->io_barrier |
drivers/md/dm-cache-target.c cache_status() -> get_cache_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | s | 16,40-s32max |
| BUF_SIZE | 0 | s | 16,40-s32max |
| LOCK2 | &md->io_barrier | ||
| TYPE_LOCK | (struct mapped_device)->io_barrier |
drivers/md/dm-cache-target.c cache_status() -> get_cache_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->features.mode | 0-1,3-u32max |
| BUF_SIZE | 0 | s | 16,40-s32max |
| BUF_SIZE | 0 | s | 16,40-s32max |
| LOCK2 | &md->io_barrier | ||
| TYPE_LOCK | (struct mapped_device)->io_barrier |
drivers/md/dm-cache-target.c can_resume() -> get_cache_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| BUF_SIZE | 0 | s | 16,40-s32max |
| BUF_SIZE | 0 | s | 16,40-s32max |
| DATA_SOURCE | 0 | s | $0 |
| LOCK2 | &md->suspend_lock | ||
| TYPE_LOCK | (struct mapped_device)->suspend_lock |
drivers/md/dm-cache-target.c commit() -> get_cache_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| BUF_SIZE | 0 | s | 16,40-s32max |
| BUF_SIZE | 0 | s | 16,40-s32max |
| DATA_SOURCE | 0 | s | $0 |
| NO_OVERFLOW_SIMPLE | 0 | s->cmd->info.btree_info.tm->real->bm->bufio->block_size | |
| HALF_LOCKED2 | &md->io_barrier | ||
| HALF_LOCKED2 | &md->suspend_lock | ||
| HALF_LOCKED2 | 0 | &s->background_work_lock |
drivers/md/dm-cache-target.c save_stats() -> get_cache_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->features.mode | 0-2 |
| BUF_SIZE | 0 | s | 16,40-s32max |
| BUF_SIZE | 0 | s | 16,40-s32max |
| DATA_SOURCE | 0 | s | $0 |
| NO_OVERFLOW_SIMPLE | 0 | s->cmd->info.btree_info.tm->real->bm->bufio->block_size | |
| LOCK2 | &md->suspend_lock | ||
| LOCK2 | 0 | &s->background_work_lock | |
| HALF_LOCKED2 | &md->io_barrier | ||
| TYPE_LOCK | (struct cache)->background_work_lock | ||
| TYPE_LOCK | (struct mapped_device)->suspend_lock |
drivers/md/dm-cache-target.c set_cache_mode() -> get_cache_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| BUF_SIZE | 0 | s | (-1),16,40-s32max |
| BUF_SIZE | 0 | s | (-1),16,40-s32max |
| BUF_SIZE | 0 | s->cmd | (-1),1920 |
| DATA_SOURCE | 0 | s | $0 |
| STR_LEN | 0 | s | (-1),15,20,22-23,30 |
| STR_LEN | 0 | s | (-1),15,20,22-23,30 |
| STR_LEN | 0 | s->ti->error | (-1),13 |
| USER_DATA | 0 | s->migration_threshold | 0-u64max |
| NO_OVERFLOW_SIMPLE | 0 | s->cmd->bm->bufio->slab_buffer->object_size | |
| NO_OVERFLOW_SIMPLE | 0 | s->cmd->dirty_info.array_info.btree_info.tm->bm->bufio->block_size | |
| NO_OVERFLOW_SIMPLE | 0 | s->cmd->hint_cursor.info->btree_info.tm->real->bm->bufio->block_size | |
| NO_OVERFLOW_SIMPLE | 0 | s->cmd->hint_info.btree_info.tm->bm->bufio->block_size | |
| NO_OVERFLOW_SIMPLE | 0 | s->cmd->info.btree_info.tm->real->bm->bufio->block_size | |
| NO_OVERFLOW_SIMPLE | 0 | s->cmd->mapping_cursor.info->btree_info.tm->real->bm->bufio->block_size | |
| NO_OVERFLOW_SIMPLE | 0 | s->origin_sectors | |
| NO_OVERFLOW_SIMPLE | 0 | s->sectors_per_block | |
| NO_OVERFLOW_SIMPLE | 0 | s->ti->begin | |
| NO_OVERFLOW_SIMPLE | 0 | s->ti->len | |
| HALF_LOCKED2 | 0 | &s->background_work_lock |
drivers/md/dm-cache-target.c write_dirty_bitset() -> get_cache_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->features.mode | 0 |
| BUF_SIZE | 0 | s | 16,40-s32max |
| BUF_SIZE | 0 | s | 16,40-s32max |
| DATA_SOURCE | 0 | s | $0 |
| LOCK2 | &md->suspend_lock | ||
| LOCK2 | 0 | &s->background_work_lock | |
| HALF_LOCKED2 | &md->io_barrier | ||
| TYPE_LOCK | (struct cache)->background_work_lock | ||
| TYPE_LOCK | (struct mapped_device)->suspend_lock |
drivers/md/dm-cache-target.c write_discard_bitset() -> get_cache_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->features.mode | 0-2 |
| BUF_SIZE | 0 | s | 16,40-s32max |
| BUF_SIZE | 0 | s | 16,40-s32max |
| DATA_SOURCE | 0 | s | $0 |
| NO_OVERFLOW_SIMPLE | 0 | s->cmd->info.btree_info.tm->real->bm->bufio->block_size | |
| LOCK2 | &md->suspend_lock | ||
| LOCK2 | 0 | &s->background_work_lock | |
| HALF_LOCKED2 | &md->io_barrier | ||
| TYPE_LOCK | (struct cache)->background_work_lock | ||
| TYPE_LOCK | (struct mapped_device)->suspend_lock |
drivers/md/dm-cache-target.c write_hints() -> get_cache_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->features.mode | 0-2 |
| BUF_SIZE | 0 | s | 16,40-s32max |
| BUF_SIZE | 0 | s | 16,40-s32max |
| DATA_SOURCE | 0 | s | $0 |
| NO_OVERFLOW_SIMPLE | 0 | s->cmd->info.btree_info.tm->real->bm->bufio->block_size | |
| LOCK2 | &md->suspend_lock | ||
| LOCK2 | 0 | &s->background_work_lock | |
| HALF_LOCKED2 | &md->io_barrier | ||
| TYPE_LOCK | (struct cache)->background_work_lock | ||
| TYPE_LOCK | (struct mapped_device)->suspend_lock |
fs/9p/v9fs.c v9fs_parse_param() -> get_cache_mode()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 0,4096-ptr_max |
| CAPPED_DATA | 0 | s | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_PTR | 0 | s | |
| HALF_LOCKED2 | &fc->uapi_mutex |