Function report |
Source Code:ipc\namespace.c |
Create Date:2022-07-28 16:53:08 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:create_ipc_ns
Proto:static struct ipc_namespace *create_ipc_ns(struct user_namespace *user_ns, struct ipc_namespace *old_ns)
Type:struct ipc_namespace
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct user_namespace * | user_ns | |
| struct ipc_namespace * | old_ns |
| 40 | ucounts = inc_ipc_namespaces(user_ns) |
| 45 | ns = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
| 49 | err = ns_alloc_inum( & ns) |
| 52 | ops = ipcns_operations |
| 55 | user_ns = get_user_ns(user_ns) |
| 58 | err = mq_init_ns(ns) |
| 62 | sem_init_ns(ns) |
| 63 | msg_init_ns(ns) |
| 64 | shm_init_ns(ns) |
| 66 | Return ns |
| 68 | fail_put : |
| 69 | put_user_ns(user_ns) |
| 70 | ns_free_inum( & ns) |
| 71 | fail_free : |
| 73 | fail_dec : |
| 75 | fail : |
| Name | Describe |
|---|---|
| copy_ipcs |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |