Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/block/zram/zram_drv.c algorithm_params_store() -> validate_algo_priority()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | zram | 4096-ptr_max |
| PARAM_VALUE | 1 | algo | 4096-ptr_max |
| PARAM_VALUE | 1 | *algo | 1-255 |
| PARAM_VALUE | 2 | prio | 0-3 |
| BUF_SIZE | 0 | zram | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | zram | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | zram | r dev_to_zram |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | prio | 0-3 |
| LOCK2 | &of->mutex | ||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/block/zram/zram_drv.c recompress_store() -> validate_algo_priority()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | zram | 4096-ptr_max |
| PARAM_VALUE | 1 | algo | 4096-ptr_max |
| PARAM_VALUE | 1 | *algo | 1-255 |
| PARAM_VALUE | 2 | prio | 1-3 |
| BUF_SIZE | 0 | zram | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | zram | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | zram | r dev_to_zram |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | prio | 1-3 |
| LOCK2 | &of->mutex | ||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |