Defined in 2 files as a function:
- include/linux/memcontrol.h, line 781 (as a function)
- include/linux/memcontrol.h, line 1226 (as a function)
Referenced in 4 files:
Smatch caller information:
mm/memcontrol.c __memcg_kmem_charge_page() -> obj_cgroup_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 4096-ptr_max |
| PARAM_VALUE | 0 | objcg->is_root | 0 |
| PARAM_VALUE | 0 | objcg->memcg | 4096-ptr_max |
| PARAM_VALUE | 0 | objcg->memcg->css.flags | 1-u32max |
| PARAM_VALUE | 0 | objcg->memcg->css.refcnt.data | 0,4096-ptr_max |
| CAPPED_DATA | 0 | objcg->memcg | 1 |
| DATA_SOURCE | 0 | objcg | r current_obj_cgroup |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/memcontrol.c __memcg_slab_post_alloc_hook() -> obj_cgroup_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 4096-ptr_max |
| PARAM_VALUE | 0 | objcg->is_root | 0 |
| CAPPED_DATA | 0 | objcg | 1 |
| DATA_SOURCE | 0 | objcg | r current_obj_cgroup |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/memcontrol.c __refill_obj_stock() -> obj_cgroup_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 1-u64max |
| CAPPED_DATA | 0 | objcg | 1 |
| DATA_SOURCE | 0 | objcg | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/memcontrol.c get_obj_cgroup_from_folio() -> obj_cgroup_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 8-u64max |
| DATA_SOURCE | 0 | objcg | r folio_objcg |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/memcontrol.c mem_cgroup_css_online() -> obj_cgroup_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 4096-ptr_max |
| PARAM_VALUE | 0 | objcg->memcg | 4096-ptr_max |
| PARAM_VALUE | 0 | objcg->refcnt.data | 4096-ptr_max |
| PARAM_VALUE | 0 | objcg->refcnt.data->confirm_switch | 0 |
| PARAM_VALUE | 0 | objcg->refcnt.data->count.counter | s64min-(-9223372036854775807),0-s64max |
| PARAM_VALUE | 0 | objcg->refcnt.data->ref | 4096-ptr_max |
| PARAM_VALUE | 0 | objcg->refcnt.percpu_count_ptr | 4096-18446744073709547523 |
| BUF_SIZE | 0 | objcg | 56 |
| DATA_SOURCE | 0 | objcg | r obj_cgroup_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &cgroup_mutex |
mm/memcontrol.c uncharge_folio() -> obj_cgroup_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 8-u64max |
| DATA_SOURCE | 0 | objcg | r folio_objcg |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
mm/percpu.c pcpu_memcg_post_alloc_hook() -> obj_cgroup_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 4096-ptr_max |
| PARAM_VALUE | 0 | objcg->is_root | 0 |
| DATA_SOURCE | 0 | objcg | $0 |
| NOCHECK_CALL |
kernel/bpf/syscall.c get_obj_cgroup_from_current() -> obj_cgroup_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 1-u64max |
| DATA_SOURCE | 0 | objcg | r current_obj_cgroup |
| NOCHECK_CALL |
mm/zswap.c zswap_store_page() -> obj_cgroup_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 4096-ptr_max |
| PARAM_VALUE | 0 | objcg->memcg->css.flags | 1-u32max |
| PARAM_VALUE | 0 | objcg->memcg->css.refcnt.data | 0,4096-ptr_max |
| CAPPED_DATA | 0 | objcg | 1 |
| DATA_SOURCE | 0 | objcg | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
kernel/bpf/memalloc.c get_obj_cgroup_from_current() -> obj_cgroup_get()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | objcg | 1-u64max |
| DATA_SOURCE | 0 | objcg | r current_obj_cgroup |
| NOCHECK_CALL |