Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 5 files:
- arch/x86/kernel/cpu/sgx/encl.c
- fs/notify/fanotify/fanotify_user.c, line 1685
- fs/notify/inotify/inotify_user.c, line 664
- mm/memcontrol.c
- mm/vmscan.c, line 2944
Smatch caller information:
mm/memcontrol.c __mem_cgroup_charge() -> get_mem_cgroup_from_mm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm->mmap_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | mm->mmap_lock.first_waiter->type | 0-1 |
| DATA_SOURCE | 0 | mm | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | mm | unit_byte |
| HALF_LOCKED2 | &session->mutex | ||
| HALF_LOCKED2 | &state.ctx->map_changing_lock | ||
| HALF_LOCKED2 | _T->lock |
mm/memcontrol.c __mem_cgroup_handle_over_high() -> get_mem_cgroup_from_mm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | mm | unit_byte |
| HALF_LOCKED2 | &sqd->lock | ||
| HALF_LOCKED2 | &vcpu->mutex |
mm/memcontrol.c mem_cgroup_swapin_charge_folio() -> get_mem_cgroup_from_mm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | mm | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | mm | unit_byte |
| LOCK2 | rcu_read |
arch/x86/kernel/cpu/sgx/encl.c sgx_encl_get_mem_cgroup() -> get_mem_cgroup_from_mm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | mm | unit_byte |
| LOCK2 | &encl->lock | ||
| TYPE_LOCK | (struct sgx_encl)->lock |
arch/x86/kernel/cpu/sgx/encl.c sgx_encl_get_mem_cgroup() -> get_mem_cgroup_from_mm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 4096-ptr_max |
| PARAM_VALUE | 0 | mm->mm_users.counter | 0-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | mm | unit_byte |
| LOCK2 | &encl->lock | ||
| LOCK2 | &encl->srcu | ||
| TYPE_LOCK | (struct sgx_encl)->lock | ||
| TYPE_LOCK | (struct sgx_encl)->srcu |
arch/x86/kernel/cpu/sgx/encl.c sgx_encl_get_mem_cgroup() -> get_mem_cgroup_from_mm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &encl->lock | ||
| TYPE_LOCK | (struct sgx_encl)->lock |
mm/vmscan.c lru_gen_add_mm() -> get_mem_cgroup_from_mm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mm->mmap_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | mm->mmap_lock.first_waiter->type | 0-1 |
| DATA_SOURCE | 0 | mm | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | mm | unit_byte |
| HALF_LOCKED2 | &p->alloc_lock | ||
| HALF_LOCKED2 | &tsk->alloc_lock | ||
| HALF_LOCKED2 | &tsk->signal->exec_update_lock | ||
| TYPE_LOCK | (struct task_struct)->alloc_lock |
fs/notify/inotify/inotify_user.c inotify_new_group() -> get_mem_cgroup_from_mm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| UNITS | 0 | mm | unit_byte |
fs/notify/fanotify/fanotify_user.c __do_sys_fanotify_init() -> get_mem_cgroup_from_mm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| UNITS | 0 | mm | unit_byte |
fs/notify/fanotify/fanotify_user.c __do_sys_fanotify_init() -> get_mem_cgroup_from_mm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| UNITS | 0 | mm | unit_byte |