Function report |
Source Code:kernel\cgroup\namespace.c |
Create Date:2022-07-28 11:12:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:copy_cgroup_ns
Proto:struct cgroup_namespace *copy_cgroup_ns(unsigned long flags, struct user_namespace *user_ns, struct cgroup_namespace *old_ns)
Type:struct cgroup_namespace
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | flags | |
struct user_namespace * | user_ns | |
struct cgroup_namespace * | old_ns |
60 | If Not (flags & New cgroup namespace ) Then |
61 | get_cgroup_ns(old_ns) |
62 | Return old_ns |
66 | If Not ns_capable(user_ns, Allow setting zone reclaim policy ) Then Return ERR_PTR( - EPERM) |
69 | ucounts = group namespaces |
74 | spin_lock_irq( & css_set_lock) |
75 | cset = ask_css_set - obtain a task's css_set*@task: the task to obtain css_set for* See task_css_set_check(). |
77 | spin_unlock_irq( & css_set_lock) |
79 | new_ns = alloc_cgroup_ns() |
86 | user_ns = get_user_ns(user_ns) |
90 | Return new_ns |
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 |