Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/block/zram/zram_drv.c recompress_slot() -> read_from_zspool()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | zram | 4096-ptr_max |
| PARAM_VALUE | 0 | zram->comps | 4096-ptr_max |
| PARAM_VALUE | 0 | zram->disksize | 1 |
| PARAM_VALUE | 0 | zram->table | 4096-ptr_max |
| PARAM_VALUE | 0 | zram->table_lock_map->name | 0-255 |
| PARAM_VALUE | 0 | zram->table_lock_map.cpu | 0 |
| PARAM_VALUE | 1 | page | 4096-ptr_max |
| PARAM_VALUE | 1 | page->_refcount.counter | 1 |
| BUF_SIZE | 0 | zram | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | zram | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | zram | $0 |
| DATA_SOURCE | 1 | page | $2 |
| DATA_SOURCE | 2 | index | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | index | unit_page |
| 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 zram_read_page() -> read_from_zspool()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | zram | 4096-ptr_max |
| PARAM_VALUE | 0 | zram->table | 4096-ptr_max |
| PARAM_VALUE | 0 | zram->table_lock_map.cpu | 0 |
| BUF_SIZE | 0 | zram | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | zram | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | zram | $0 |
| DATA_SOURCE | 1 | page | $1 |
| DATA_SOURCE | 2 | index | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 2 | index | 0-2305843009213693951 |
| USER_DATA | 2 | index | 0-2305843009213693951 |
| UNITS | 0 | zram | unit_byte |
| UNITS | 1 | page | unit_page |
drivers/block/zram/zram_drv.c zram_writeback_slots() -> read_from_zspool()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | zram | 4096-ptr_max |
| PARAM_VALUE | 0 | zram->backing_dev | 1-u64max |
| PARAM_VALUE | 0 | zram->compressed_wb | 0 |
| PARAM_VALUE | 0 | zram->disksize | 1 |
| PARAM_VALUE | 0 | zram->table | 4096-ptr_max |
| BUF_SIZE | 0 | zram | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | zram | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | zram->wb_batch_size | 1 |
| DATA_SOURCE | 0 | zram | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | index | unit_page |
| LOCK2 | &of->mutex | ||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |