Defined in 1 files as a function:
Referenced in 4 files:
- drivers/infiniband/ulp/srp/ib_srp.c, line 3764
- fs/nsfs.c
- fs/sysfs/mount.c, line 61
- net/core/net_namespace.c
Smatch caller information:
net/core/net_namespace.c net_drop_ns() -> to_net_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 1-u64max |
| DATA_SOURCE | 0 | ns | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &kobj_ns_type_lock | ||
| HALF_LOCKED2 | &of->mutex |
net/core/net_namespace.c netns_install() -> to_net_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| DATA_SOURCE | 0 | ns | $1 |
net/core/net_namespace.c netns_owner() -> to_net_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| BUF_SIZE | 0 | ns | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | ns | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | ns | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &ns_tree_lock.lock |
net/core/net_namespace.c netns_put() -> to_net_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| BUF_SIZE | 0 | ns | s32min-s32max |
| DATA_SOURCE | 0 | ns | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &task->signal->exec_update_lock |
fs/sysfs/mount.c sysfs_init_fs_context() -> to_net_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| BUF_SIZE | 0 | ns | 256 |
| DATA_SOURCE | 0 | ns | r kobj_ns_grab_current |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fc->uapi_mutex |
fs/nsfs.c is_current_namespace() -> to_net_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| DATA_SOURCE | 0 | ns | $0 |
| LOCK2 | rcu_read |
fs/nsfs.c nsfs_fh_to_dentry() -> to_net_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| DATA_SOURCE | 0 | ns | r ns_tree_lookup_rcu |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/nsfs.c nsfs_fh_to_dentry() -> to_net_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| DATA_SOURCE | 0 | ns | r ns_tree_lookup_rcu |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/infiniband/ulp/srp/ib_srp.c add_target_store() -> to_net_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 0,4096-ptr_max |
| BUF_SIZE | 0 | ns | (-1)-0,256 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |