Function report | 
Source Code:fs\namespace.c | 
Create Date:2022-07-28 20:09:20 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:alloc_mnt_ns
Proto:static struct mnt_namespace *alloc_mnt_ns(struct user_namespace *user_ns, bool anon)
Type:struct mnt_namespace
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct user_namespace * | user_ns | |
| bool | anon | 
| 3183 | ucounts = inc_mnt_namespaces(user_ns) | 
| 3187 | new_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). | 
| 3188 | If Not new_ns Then | 
| 3189 | dec_mnt_namespaces(ucounts) | 
| 3192 | If Not anon Then | 
| 3193 | ret = ns_alloc_inum( & ns) | 
| 3194 | If ret Then | 
| 3200 | ops = mntns_operations | 
| 3203 | atomic_set( & count, 1) | 
| 3205 | init_waitqueue_head( & poll) | 
| 3206 | user_ns = get_user_ns(user_ns) | 
| 3208 | Return new_ns | 
| Name | Describe | 
|---|---|
| open_detached_copy | |
| copy_mnt_ns | |
| mount_subtree | |
| SYSCALL_DEFINE3 | Create a kernel mount representation for a new, prepared superblock* (specified by fs_fd) and attach to an open_tree-like file descriptor. | 
| init_mount_tree | 
| 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  |