Defined in 2 files as a function:
- include/linux/ipc_namespace.h, line 140 (as a function)
- include/linux/ipc_namespace.h, line 168 (as a function)
Referenced in 6 files:
- drivers/android/binder/rust_binderfs.c, line 653
- drivers/android/binderfs.c, line 646
- ipc/mqueue.c
- ipc/namespace.c
- ipc/shm.c, line 1641
- ipc/util.c, line 906
Smatch caller information:
ipc/namespace.c copy_ipcs() -> get_ipc_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | ns | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &tsk->signal->exec_update_lock |
ipc/namespace.c ipcns_get() -> get_ipc_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &task->alloc_lock | ||
| HALF_LOCKED2 | &task->signal->exec_update_lock | ||
| TYPE_LOCK | (struct task_struct)->alloc_lock |
ipc/namespace.c ipcns_install() -> get_ipc_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| DATA_SOURCE | 0 | ns | r to_ipc_ns |
| NS_CAPABLE | 0 | 21 |
ipc/util.c sysvipc_proc_open() -> get_ipc_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/android/binderfs.c binderfs_fill_super() -> get_ipc_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fc->uapi_mutex |
ipc/shm.c do_shmat() -> get_ipc_ns()
| Type | Parameter | Key | Value |
|---|
ipc/mqueue.c __get_ns_from_inode() -> get_ipc_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | ns | 1-s32max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | ns | unit_byte |
| LOCK2 | global &mq_lock |
ipc/mqueue.c mq_create_mount() -> get_ipc_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->mq_msg_default | 10 |
| PARAM_VALUE | 0 | ns->mq_msg_max | 10 |
| PARAM_VALUE | 0 | ns->mq_msgsize_default | 8192 |
| PARAM_VALUE | 0 | ns->mq_msgsize_max | 8192 |
| PARAM_VALUE | 0 | ns->mq_queues_count | 0 |
| PARAM_VALUE | 0 | ns->mq_queues_max | 256 |
| PARAM_VALUE | 0 | ns->ns.stashed | 0 |
| PARAM_VALUE | 0 | ns->ucounts | 0,4096-ptr_max |
| BUF_SIZE | 0 | ns | (-1),2944 |
| BUF_SIZE | 0 | ns | (-1),2944 |
| BUF_SIZE | 0 | ns->ucounts | (-1),184 |
| DATA_SOURCE | 0 | ns | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
ipc/mqueue.c mqueue_init_fs_context() -> get_ipc_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fc->uapi_mutex |