Function report | 
Source Code:kernel\fork.c | 
Create Date:2022-07-28 08:58:56 | 
| Last Modify:2020-03-17 11:04:53 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Check constraints on flags passed to the unshare system call.
Proto:static int check_unshare_flags(unsigned long unshare_flags)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned long | unshare_flags | 
| 2833 | If Not thread_group_empty(current process) Then Return -EINVAL | 
| 2837 | If _read - get a refcount's value*@r: the refcount* Return: the refcount's value > 1 Then Return -EINVAL | 
| 2840 | If unshare_flags & set if VM shared between processes Then | 
| 2841 | If Not Returns true if the task does not share ->mm with another thread/process. Then Return -EINVAL | 
| 2845 | 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  |