Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
mm/swapfile.c cluster_reclaim_range() -> swap_table_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ci | 4096-ptr_max |
| PARAM_VALUE | 0 | ci->count | 0-512 |
| PARAM_VALUE | 0 | ci->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | off | 0-511 |
| CAPPED_DATA | 0 | ci->table | 1 |
| DATA_SOURCE | 0 | ci | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &si->global_cluster_lock | ||
| HALF_LOCKED2 | global &device_hotplug_lock | ||
| HALF_LOCKED2 | global &system_transition_mutex |
mm/swapfile.c find_next_to_unuse() -> swap_table_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ci | 4096-ptr_max |
| PARAM_VALUE | 1 | off | 0-511 |
| CAPPED_DATA | 1 | off | 1 |
| CAPABLE | 0 | 21 |
mm/swapfile.c swap_entry_swapped() -> swap_table_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ci | 4096-ptr_max |
| PARAM_VALUE | 1 | off | 0-511 |
| DATA_SOURCE | 0 | ci | r swap_cluster_lock |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mm->mmap_lock | ||
| LOCK2 | &oldmm->mmap_lock | ||
| LOCK2 | dst_ptl | ||
| LOCK2 | rcu_read | ||
| LOCK2 | src_ptl | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
mm/swapfile.c swap_reclaim_full_clusters() -> swap_table_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ci | 4096-ptr_max |
| PARAM_VALUE | 1 | off | 0-511 |
| CAPPED_DATA | 1 | off | 1 |
| DATA_SOURCE | 0 | ci | r isolate_lock_cluster |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | 0 | &ci->lock |
mm/swapfile.c unuse_pte_range() -> swap_table_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | off | 0-511 |
| CAPABLE | 0 | 21 | |
| BIT_INFO | 1 | off | 0x0,0x1ff |
| LOCK2 | &mm->mmap_lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock |
mm/swap_state.c swap_cache_get_folio() -> swap_table_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ci | 4096-ptr_max |
| PARAM_VALUE | 1 | off | 0-511 |
| BIT_INFO | 1 | off | 0x0,0x1ff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &ctx->map_changing_lock | ||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | rcu_read |
mm/swap_state.c swap_cache_get_shadow() -> swap_table_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ci | 4096-ptr_max |
| PARAM_VALUE | 1 | off | 0-511 |
| BIT_INFO | 1 | off | 0x0,0x1ff |
| LOCK2 | rcu_read |
mm/swap_state.c swap_cache_has_folio() -> swap_table_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ci | 4096-ptr_max |
| PARAM_VALUE | 1 | off | 0-511 |
| BIT_INFO | 1 | off | 0x0,0x1ff |
| LOCK2 | &ctx->map_changing_lock | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct userfaultfd_ctx)->map_changing_lock |