Function report |
Source Code:kernel\fork.c |
Create Date:2022-07-28 08:58:57 |
| Last Modify:2020-03-17 11:04:53 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Unshare the filesystem structure if it is being shared
Proto:static int unshare_fs(unsigned long unshare_flags, struct fs_struct **new_fsp)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned long | unshare_flags | |
| struct fs_struct ** | new_fsp |
| 2855 | If Not (unshare_flags & set if fs info shared between processes ) || Not fs Then Return 0 |
| 2859 | If users == 1 Then Return 0 |
| 2862 | new_fsp = copy_fs_struct(fs) |
| 2866 | 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 |
| 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 |