Defined in 1 files as a prototype:
Referenced in 8 files:
- block/blk-cgroup.c
- include/linux/cgroup_refcnt.h
- include/linux/memcontrol.h, line 799
- kernel/cgroup/cgroup.c
- kernel/cgroup/cpuset-v1.c, line 316
- kernel/cgroup/cpuset.c
- kernel/cgroup/legacy_freezer.c
- mm/memcontrol.c, line 5285
Smatch caller information:
mm/memcontrol.c mem_cgroup_swapin_charge_folio() -> css_tryget_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | css | 1-1025,1027-1029,1031-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read |
kernel/cgroup/legacy_freezer.c freezer_change_state() -> css_tryget_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | css | 1-u64max |
| BUF_SIZE | 0 | css | (-1),392 |
| BUF_SIZE | 0 | css | (-1),392 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | global &freezer_mutex | ||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
kernel/cgroup/legacy_freezer.c freezer_read() -> css_tryget_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | css | 1-u64max |
| BUF_SIZE | 0 | css | (-1),392 |
| BUF_SIZE | 0 | css | (-1),392 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &m->lock | ||
| LOCK2 | global &freezer_mutex | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct seq_file)->lock |
mm/zswap.c mem_cgroup_tryget_online() -> css_tryget_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | css | 1-u64max |
| PREEMPT_ADD | |||
| LOCK2 | global &zswap_shrink_lock | ||
| HALF_LOCKED2 | &pool->lock |
kernel/cgroup/cpuset.c cpuset_handle_hotplug() -> css_tryget_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read |
kernel/cgroup/cpuset.c update_cpumasks_hier() -> css_tryget_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | global &cpuset_mutex | ||
| HALF_LOCKED2 | global &cpuset_top_mutex |
kernel/cgroup/cpuset.c update_nodemasks_hier() -> css_tryget_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | global &cpuset_mutex | ||
| LOCK2 | global &cpuset_top_mutex | ||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
kernel/cgroup/cpuset.c update_sibling_cpumasks() -> css_tryget_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | global &cpuset_mutex | ||
| HALF_LOCKED2 | global &cpuset_top_mutex |
kernel/cgroup/cgroup.c cgroup_get_e_css() -> css_tryget_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | css | 1-u64max |
| DATA_SOURCE | 0 | css | r cgroup_css |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &of->mutex |
kernel/cgroup/cgroup.c cgroup_tryget_css() -> css_tryget_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | css | 1-u64max |
| DATA_SOURCE | 0 | css | r cgroup_css |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &seq->lock | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct seq_file)->lock |
kernel/cgroup/cgroup.c css_tryget_online_from_dir() -> css_tryget_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | css | 1-u64max |
| BUF_SIZE | 0 | css | (-1),392 |
| BUF_SIZE | 0 | css | (-1),392 |
| DATA_SOURCE | 0 | css | r cgroup_css |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &of->mutex |
block/blk-cgroup.c bio_associate_blkg() -> css_tryget_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | css | r blkcg_css |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &b->c->verify_lock | ||
| HALF_LOCKED2 | &b->io_mutex | ||
| HALF_LOCKED2 | &md->io_barrier | ||
| HALF_LOCKED2 | global &bch_register_lock |
block/blk-cgroup.c blkg_alloc() -> css_tryget_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | css | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &bdev->bd_queue->rq_qos_mutex | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &q->blkcg_mutex | ||
| HALF_LOCKED2 | &q->queue_lock | ||
| HALF_LOCKED2 | irq |
kernel/cgroup/cpuset-v1.c cpuset1_hotplug_update_tasks() -> css_tryget_online()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | css | 4096-2371988510885339135,2371988510885339137-ptr_max |
| PARAM_VALUE | 0 | css->cgroup | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &cpuset_mutex |