Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

mm/page_io.c __swap_table_clear_zero() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 1 off 0-511
DATA_SOURCE 0 ci $0
DATA_SOURCE 1 off $1
RX_PATH
TASK_NOT_RUNNING

mm/page_io.c __swap_table_set_zero() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 1 off 0-511
DATA_SOURCE 0 ci $0
DATA_SOURCE 1 off $1
RX_PATH
TASK_NOT_RUNNING

mm/page_io.c __swap_table_test_zero() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 1 off 0-2147484158
DATA_SOURCE 0 ci $0
DATA_SOURCE 1 off $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read

mm/swapfile.c __swap_cluster_dup_entry() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
DATA_SOURCE 0 ci $0
DATA_SOURCE 1 off $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mm->mmap_lock
HALF_LOCKED2 &oldmm->mmap_lock
HALF_LOCKED2 dst_ptl
HALF_LOCKED2 rcu_read
HALF_LOCKED2 src_ptl
HALF_LOCKED2 0 &ci->lock

mm/swapfile.c __swap_cluster_free_entries() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
CAPPED_DATA 0 ci->table 1
DATA_SOURCE 0 ci $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 1 off unit_page
HALF_LOCKED2 global &system_transition_mutex
HALF_LOCKED2 0 &ci->lock

mm/swapfile.c __swap_cluster_put_entry() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
DATA_SOURCE 0 ci $0
DATA_SOURCE 1 off $1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 off unit_page
HALF_LOCKED2 global &system_transition_mutex
HALF_LOCKED2 0 &ci->lock

mm/swapfile.c __swap_count() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 1 off 0-511
DATA_SOURCE 0 ci r __swap_entry_to_cluster
DATA_SOURCE 1 off r swp_cluster_offset
RX_PATH
TASK_NOT_RUNNING
LOCK2 vmf->ptl
HALF_LOCKED2 &mm->mmap_lock

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 1-512
PARAM_VALUE 0 ci->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ci->table 0,4096-ptr_max
PARAM_VALUE 1 off 0-511
CAPPED_DATA 0 ci->table 1
CAPPED_DATA 1 off 1
DATA_SOURCE 0 ci $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &ci->lock
HALF_LOCKED2 &si->global_cluster_lock
HALF_LOCKED2 global &device_hotplug_lock
HALF_LOCKED2 global &system_transition_mutex
TYPE_LOCK (struct swap_cluster_info)->lock

mm/swapfile.c cluster_scan_range() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 0 ci->count 0-512
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 folio_maybe_swapped() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 1 off 0-4294967294
DATA_SOURCE 0 ci r __swap_entry_to_cluster
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 &mm->mmap_lock
HALF_LOCKED2 global &ksm_thread_mutex
HALF_LOCKED2 ptl
HALF_LOCKED2 vmf->ptl

mm/swapfile.c swap_cluster_assert_empty() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
DATA_SOURCE 0 ci $0
DATA_SOURCE 1 off $1 [m]
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 1 off unit_page
HALF_LOCKED2 0 &ci->lock

mm/swapfile.c swap_extend_table_alloc() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 0 ci->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ci->table 1
DATA_SOURCE 0 ci $1
DATA_SOURCE 1 off $2
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &ci->lock
HALF_LOCKED2 &mm->mmap_lock
HALF_LOCKED2 &oldmm->mmap_lock
TYPE_LOCK (struct swap_cluster_info)->lock

mm/swapfile.c swap_free_hibernation_slot() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 0 ci->extend_table 0,4096-ptr_max
PARAM_VALUE 1 off 0-511
CAPPED_DATA 0 ci->table 1
DATA_SOURCE 0 ci r swap_cluster_lock
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &system_transition_mutex
HALF_LOCKED2 global &device_hotplug_lock

mm/swapfile.c swap_only_has_cache() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
DATA_SOURCE 0 ci $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &system_transition_mutex

mm/swapfile.c swap_put_entries_cluster() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
DATA_SOURCE 0 ci r swap_cluster_lock
RX_PATH
TASK_NOT_RUNNING
UNITS 1 off unit_page
HALF_LOCKED2 ptl

mm/swapfile.c swp_swapcount() -> __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 ptl
HALF_LOCKED2 &mm->mmap_lock

mm/swap_state.c __swap_cache_add_check() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 0 ci->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ci->table 1-u64max
PARAM_VALUE 1 off 0-511
DATA_SOURCE 0 ci $0
DATA_SOURCE 1 off r swp_cluster_offset
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &ci->lock
TYPE_LOCK (struct swap_cluster_info)->lock

mm/swap_state.c __swap_cache_add_check() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 0 ci->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ci->table 1-u64max
PARAM_VALUE 1 off 0-4294967294
CAPPED_DATA 0 ci->table 1
DATA_SOURCE 0 ci $0
FUZZY_MAX 1 off 0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &ci->lock
TYPE_LOCK (struct swap_cluster_info)->lock

mm/swap_state.c __swap_cache_do_add_folio() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 1 off 0-4294967294
CAPPED_DATA 0 ci->table 1
DATA_SOURCE 0 ci $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 0 &ci->lock

mm/swap_state.c __swap_cache_do_del_folio() -> __swap_table_get()

Type Parameter Key Value
DATA_SOURCE 0 ci $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 0 &ci->lock

mm/swap_state.c __swap_cache_do_del_folio() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 1 off 0-511
DATA_SOURCE 0 ci $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 0 &ci->lock

mm/swap_state.c __swap_cache_replace_folio() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 0 ci 0,4096-ptr_max
PARAM_VALUE 1 off 0-4294967294
DATA_SOURCE 0 ci $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 irq

mm/swap_state.c __swap_cache_replace_folio() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 1 off 0-511
CAPPED_DATA 0 ci->table 1
DATA_SOURCE 0 ci $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 irq

mm/swap_state.c __swap_table_test_zero() -> __swap_table_get()

Type Parameter Key Value
PARAM_VALUE 0 ci 4096-ptr_max
PARAM_VALUE 0 ci->flags 0-5
PARAM_VALUE 0 ci->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ci->table 1-u64max
PARAM_VALUE 1 off 0-4294967294
CAPPED_DATA 0 ci->table 1
DATA_SOURCE 0 ci $0
DATA_SOURCE 1 off $1
FUZZY_MAX 1 off 0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &ci->lock
TYPE_LOCK (struct swap_cluster_info)->lock