Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
fs/namespace.c copy_mnt_ns() -> get_mnt_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 1-u64max |
| DATA_SOURCE | 0 | ns | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &tsk->signal->exec_update_lock |
fs/namespace.c init_mount_tree() -> get_mnt_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 43159351630516224 |
| PARAM_VALUE | 0 | ns->mounts.rb_node | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->root | 4096-ptr_max |
| NOCHECK_CALL | |||
| LOCK2 | &root.dentry->d_inode->i_rwsem | ||
| LOCK2 | global &namespace_sem | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/namespace.c mntns_get() -> get_mnt_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| 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 |
fs/namespace.c mntns_install() -> get_mnt_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->is_anon | 0 |
| DATA_SOURCE | 0 | ns | r to_mnt_ns |
| NS_CAPABLE | 0 | 18 | |
| NS_CAPABLE | 0 | 21 | |
| NOCHECK_CALL |
fs/proc_namespace.c mounts_open_common() -> get_mnt_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 1-u64max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &task->alloc_lock | ||
| TYPE_LOCK | (struct task_struct)->alloc_lock |