| Function report | 
| Source Code: kernel\fork.c | Create Date:2022-07-28 08:58:58 | 
| Last Modify:2020-03-17 11:04:53 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Unshare file descriptor table if it is being shared
Proto:static int unshare_fd(unsigned long unshare_flags, struct files_struct **new_fdp)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned long | unshare_flags | |
| struct files_struct ** | new_fdp | 
| 2875 | error = 0 | 
| 2877 | If unshare_flags & set if open files shared between processes && fd && atomic_read( & ad mostly part) > 1 Then | 
| 2884 | Return 0 | 
| Name | Describe | 
|---|---|
| ksys_unshare | share allows a process to 'unshare' part of the process* context which was originally shared using clone. copy_** functions used by do_fork() cannot be used here directly* because they modify an inactive task_struct that is being* constructed | 
| unshare_files | Helper to unshare the files of the current task.* We don't want to expose copy_files internals to* the exec layer of the kernel. | 
| 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 |