Defined in 2 files as a function:
- include/linux/cgroup_namespace.h, line 32 (as a function)
- include/linux/cgroup_namespace.h, line 53 (as a function)
Referenced in 2 files:
Smatch caller information:
kernel/cgroup/namespace.c cgroupns_get() -> get_cgroup_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &task->alloc_lock | ||
| HALF_LOCKED2 | &task->signal->exec_update_lock | ||
| TYPE_LOCK | (struct task_struct)->alloc_lock |
kernel/cgroup/namespace.c cgroupns_install() -> get_cgroup_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| DATA_SOURCE | 0 | ns | r to_cg_ns |
| NS_CAPABLE | 0 | 21 | |
| NOCHECK_CALL |
kernel/cgroup/namespace.c copy_cgroup_ns() -> get_cgroup_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 1-u64max |
| DATA_SOURCE | 0 | ns | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &tsk->signal->exec_update_lock |
kernel/cgroup/cgroup.c cgroup_file_open() -> get_cgroup_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
kernel/cgroup/cgroup.c cgroup_init_fs_context() -> get_cgroup_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &fc->uapi_mutex |