函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Unshare the filesystem structure if it is being shared

函数原型:static int unshare_fs(unsigned long unshare_flags, struct fs_struct **new_fsp)

返回类型:int

参数:

类型参数名称
unsigned longunshare_flags
struct fs_struct **new_fsp
2853  fs等于fs
2855  如果非unshare_flags按位与共享文件系统的值或非fs则返回:0
2859  如果users恒等于1则返回:0
2862  new_fsp等于copy_fs_struct(fs)
2863  如果非new_fsp则返回:负ENOMEM
2866  返回: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