函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-27 09:58:26
Last Modify:2020-03-17 11:04:53 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Check constraints on flags passed to the unshare system call.

函数原型:static int check_unshare_flags(unsigned long unshare_flags)

返回类型:int

参数:

类型参数名称
unsigned longunshare_flags
2821  如果unshare_flags按位与属于同一个线程组按位或共享文件系统按位或在新的namespace启动子进程按位或共享信号处理按位或共享虚拟内存按位或共享文件描述符按位或share system V SEM_UNDO semantics 按位或新主机空间按位或新消息空间按位或新网络空间按位或新用户空间按位或新进程空间按位或New cgroup namespace 的值的反则返回:负EINVAL
2832  如果unshare_flags按位与属于同一个线程组按位或共享信号处理按位或共享虚拟内存的值则
2833  如果非thread_group_empty(当前进程)则返回:负EINVAL
2836  如果unshare_flags按位与共享信号处理按位或共享虚拟内存的值则
2837  如果_read - get a refcount's value*@r: the refcount* Return: the refcount's value大于1则返回:负EINVAL
2840  如果unshare_flags按位与共享虚拟内存
2841  如果非Returns true if the task does not share ->mm with another thread/process.则返回:负EINVAL
2845  返回:0
调用者
名称描述
ksys_unshareshare 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