Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
mm/mempool.c mempool_free_bulk() -> add_element()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->curr_nr | s32min-2147483646 |
| PARAM_VALUE | 0 | pool->min_nr | (-2147483647)-s32max |
| CAPPED_DATA | 0 | pool->curr_nr | 1 |
| DATA_SOURCE | 0 | pool | $0 |
| PARAM_COMPARE | 0 | pool->curr_nr | < $0->min_nr |
| CONSTRAINT | 0 | pool->curr_nr | <3022 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | flags | ||
| LOCK2 | 0 | &pool->lock | |
| TYPE_LOCK | (struct mempool)->lock |
mm/mempool.c mempool_free_bulk() -> add_element()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->curr_nr | 0 |
| PARAM_VALUE | 0 | pool->min_nr | 0 |
| DATA_SOURCE | 0 | pool | $0 |
| PARAM_COMPARE | 0 | pool->curr_nr | >= $0->min_nr |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | flags | ||
| LOCK2 | 0 | &pool->lock | |
| TYPE_LOCK | (struct mempool)->lock |
mm/mempool.c mempool_init_node() -> add_element()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->curr_nr | s32min-2147483646 |
| PARAM_VALUE | 0 | pool->elements | 1-u64max |
| PARAM_VALUE | 0 | pool->wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->wait.head.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->wait.head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->wait.head.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | element | 1-u64max |
| BUF_SIZE | 0 | pool | (-1),200 |
| BUF_SIZE | 0 | pool | (-1),200 |
| BUF_SIZE | 0 | pool->elements | 8 |
| BUF_SIZE | 0 | pool->pool_data | (-1),1216,1600,1752-s32max |
| CAPPED_DATA | 0 | pool | 1 |
| CAPPED_DATA | 0 | pool->curr_nr | 1 |
| DATA_SOURCE | 0 | pool | $0 |
| STR_LEN | 0 | pool | (-1),6,12 |
| STR_LEN | 0 | pool | (-1),6,12 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | pool->min_nr | 0-s32max[c] |
| NO_OVERFLOW_SIMPLE | 0 | pool->min_nr | |
| HALF_LOCKED2 | &mddev->reconfig_mutex | ||
| HALF_LOCKED2 | &of->mutex |
mm/mempool.c mempool_resize() -> add_element()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->curr_nr | s32min-2147483646 |
| PARAM_VALUE | 0 | pool->elements | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | pool->min_nr | 1-s32max |
| PARAM_VALUE | 1 | element | 1-u64max |
| BUF_SIZE | 0 | pool->elements | 8-17179869176 |
| CAPPED_DATA | 0 | pool->curr_nr | 1 |
| CAPPED_DATA | 0 | pool->min_nr | 1 |
| DATA_SOURCE | 0 | pool | $0 |
| PARAM_COMPARE | 0 | pool->curr_nr | < $0->min_nr |
| CONSTRAINT | 0 | pool->curr_nr | <3022 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | pool->curr_nr | |
| NO_OVERFLOW_SIMPLE | 0 | pool->min_nr | |
| LOCK2 | flags | ||
| LOCK2 | 0 | &pool->lock | |
| HALF_LOCKED2 | &q->limits_lock | ||
| TYPE_LOCK | (struct mempool)->lock |