函数逻辑报告 |
Source Code:kernel\utsname.c |
Create Date:2022-07-27 12:20:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Clone a new ns copying an original utsname, setting refcount to 1*@old_ns: namespace to clone* Return ERR_PTR(-ENOMEM) on error (failure to allocate), new ns otherwise
函数原型:static struct uts_namespace *clone_uts_ns(struct user_namespace *user_ns, struct uts_namespace *old_ns)
返回类型:struct uts_namespace
参数:
类型 | 参数 | 名称 |
---|---|---|
struct user_namespace * | user_ns | |
struct uts_namespace * | old_ns |
58 | ns等于create_uts_ns() |
62 | err等于ns_alloc_inum( & ns) |
67 | ops等于utsns_operations |
71 | user_ns等于get_user_ns(user_ns) |
73 | 返回:ns |
75 | fail_free : |
77 | fail_dec : |
79 | fail : |
80 | 返回:错误号 |
名称 | 描述 |
---|---|
copy_utsname | Copy task tsk's utsname namespace, or clone it if flags* specifies CLONE_NEWUTS. In latter case, changes to the* utsname of this process won't be seen by parent, and vice* versa. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |