Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
mm/swapfile.c count_swap_pages() -> swap_usage_in_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | si | 4096-ptr_max |
| BIT_INFO | 0 | si->flags | 0x2,0xffffffffffffffff |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &device_hotplug_lock | ||
| LOCK2 | global &swap_lock | ||
| LOCK2 | global &system_transition_mutex | ||
| LOCK2 | 0 | &si->lock | |
| TYPE_LOCK | (struct swap_info_struct)->lock |
mm/swapfile.c drain_mmlist() -> swap_usage_in_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| LOCK2 | &p->lock | ||
| LOCK2 | global &swap_lock | ||
| LOCK2 | global &swapon_mutex | ||
| TYPE_LOCK | (struct swap_info_struct)->lock |
mm/swapfile.c si_swapinfo() -> swap_usage_in_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | si | 4096-ptr_max |
| BIT_INFO | 0 | si->flags | 0x1,0xfffffffffffffffd |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &swap_lock | ||
| HALF_LOCKED2 | &m->lock |
mm/swapfile.c swap_reclaim_full_clusters() -> swap_usage_in_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | si | 4096-ptr_max |
| DATA_SOURCE | 0 | si | $0 |
| RX_PATH | |||
| HALF_LOCKED2 | &pool->lock |
mm/swapfile.c swap_show() -> swap_usage_in_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | si | 4096-ptr_max |
| DATA_SOURCE | 0 | si | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &swap->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
mm/swapfile.c try_to_unuse() -> swap_usage_in_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| CAPABLE | 0 | 21 |
mm/swapfile.c try_to_unuse() -> swap_usage_in_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | si | 4096-ptr_max |
| CAPABLE | 0 | 21 | |
| PREEMPT_ADD | <- disables preempt | ||
| LOCK2 | global &mmlist_lock |
mm/swapfile.c try_to_unuse() -> swap_usage_in_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | si | 4096-ptr_max |
| CAPABLE | 0 | 21 | |
| PREEMPT_ADD | <- disables preempt | ||
| LOCK2 | global &mmlist_lock |
mm/swapfile.c try_to_unuse() -> swap_usage_in_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | si | 4096-ptr_max |
| CAPABLE | 0 | 21 |
mm/swapfile.c try_to_unuse() -> swap_usage_in_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | si | 4096-ptr_max |
| CAPPED_DATA | 0 | si->max | 1 |
| CAPABLE | 0 | 21 |
mm/swapfile.c try_to_unuse() -> swap_usage_in_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | si | 4096-ptr_max |
| CAPABLE | 0 | 21 |