Function report |
Source Code:fs\namespace.c |
Create Date:2022-07-28 20:09:16 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:open_detached_copy
Proto:static struct file *open_detached_copy(struct path *path, bool recursive)
Type:struct file
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct path * | path | |
| bool | recursive |
| 2323 | ns = alloc_mnt_ns(user_ns, true) |
| 2330 | namespace_lock() |
| 2331 | mnt = __do_loopback(path, recursive) |
| 2333 | namespace_unlock() |
| 2334 | free_mnt_ns(ns) |
| 2338 | lock_mount_hash() |
| 2340 | containing namespace = ns |
| 2341 | # of mounts in the namespace ++ |
| 2346 | unlock_mount_hash() |
| 2347 | namespace_unlock() |
| 2352 | If IS_ERR(file) Then dissolve_on_fput(mnt) |
| 2354 | Else f_mode |= File represents mount that needs unmounting |
| 2356 | Return file |
| Name | Describe |
|---|---|
| SYSCALL_DEFINE3 |
| 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 |