Function report |
Source Code:kernel\utsname.c |
Create Date:2022-07-28 11:18:20 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static struct uts_namespace *clone_uts_ns(struct user_namespace *user_ns, struct uts_namespace *old_ns)
Type:struct uts_namespace
Parameter:
Type | Parameter | Name |
---|---|---|
struct user_namespace * | user_ns | |
struct uts_namespace * | old_ns |
53 | ucounts = inc_uts_namespaces(user_ns) |
58 | ns = create_uts_ns() |
62 | err = ns_alloc_inum( & ns) |
67 | ops = utsns_operations |
70 | No 3D Now!( & name, & name, size of name ) |
71 | user_ns = get_user_ns(user_ns) |
73 | Return ns |
75 | fail_free : |
77 | fail_dec : |
79 | fail : |
Name | Describe |
---|---|
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. |
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 |