函数逻辑报告 |
Source Code:kernel\fork.c |
Create Date:2022-07-27 09:58:28 |
Last Modify:2020-03-17 11:04:53 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Unshare file descriptor table if it is being shared
函数原型:static int unshare_fd(unsigned long unshare_flags, struct files_struct **new_fdp)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned long | unshare_flags | |
struct files_struct ** | new_fdp |
2875 | error等于0 |
2877 | 如果unshare_flags按位与共享文件描述符且fd且atomic_read( & ad mostly part)大于1则 |
2884 | 返回:0 |
名称 | 描述 |
---|---|
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. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |