Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
drivers/block/drbd/drbd_nl.c drbd_check_al_size() -> lc_element_by_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | lc | 4096-ptr_max |
| PARAM_VALUE | 0 | lc->nr_elements | 1-u32max |
| PARAM_VALUE | 1 | i | 0-s32max |
| CAPPED_DATA | 1 | i | 1 |
| PARAM_COMPARE | 1 | i | < $0->nr_elements |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | i | unit_array_size |
| LOCK2 | &adm_ctx->resource->adm_mutex | ||
| LOCK2 | &device->al_lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &device->resource->conf_update | ||
| HALF_LOCKED2 | &devlink->lock | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &cb_lock | ||
| HALF_LOCKED2 | global &crypto_cfg_mutex | ||
| HALF_LOCKED2 | global &dpll_lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &net_dm_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| TYPE_LOCK | (struct drbd_device)->al_lock | ||
| TYPE_LOCK | (struct drbd_resource)->adm_mutex |
drivers/block/drbd/drbd_actlog.c __al_write_transaction() -> lc_element_by_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | lc | 4096-ptr_max |
| CAPPED_DATA | 0 | &lc->to_be_changed | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | lc->nr_elements |
drivers/block/drbd/drbd_actlog.c drbd_al_shrink() -> lc_element_by_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | lc | 4096-ptr_max |
| PARAM_VALUE | 0 | lc->nr_elements | 1-u32max |
| PARAM_VALUE | 1 | i | 0-s32max |
| CAPPED_DATA | 1 | i | 1 |
| PARAM_COMPARE | 0 | lc->nr_elements | > $1 |
| PARAM_COMPARE | 1 | i | < $0->nr_elements |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | lc->nr_elements | |
| NO_OVERFLOW_SIMPLE | 1 | i | |
| UNITS | 1 | i | unit_array_size |
| HALF_LOCKED2 | &adm_ctx->resource->adm_mutex | ||
| HALF_LOCKED2 | &device->resource->conf_update |
drivers/block/drbd/drbd_actlog.c drbd_rs_del_all() -> lc_element_by_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | lc | 4096-ptr_max |
| PARAM_VALUE | 0 | lc->nr_elements | 1-u32max |
| PARAM_VALUE | 1 | i | 0-s32max |
| CAPPED_DATA | 1 | i | 1 |
| PARAM_COMPARE | 0 | lc->nr_elements | > $1 |
| PARAM_COMPARE | 1 | i | < $0->nr_elements |
| PREEMPT_ADD | <- disables preempt | ||
| UNITS | 1 | i | unit_array_size |
| LOCK2 | &device->al_lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | device->state_mutex | ||
| TYPE_LOCK | (struct drbd_device)->al_lock |
lib/lru_cache.c lc_seq_dump_details() -> lc_element_by_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | lc | 4096-ptr_max |
| PARAM_VALUE | 1 | i | 0-s32max |
| CAPPED_DATA | 1 | i | 1 |
| DATA_SOURCE | 0 | lc | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | i | unit_array_size |
| LOCK2 | &seq->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |