Function report |
Source Code:kernel\cgroup\cgroup-v1.c |
Create Date:2022-07-28 11:13:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cgroup1_get_tree
Proto:int cgroup1_get_tree(struct fs_context *fc)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct fs_context * | fc |
1204 | ctx = cgroup_fc2context(fc) |
1208 | If Not ns_capable(user_ns, Allow setting zone reclaim policy ) Then Return -EPERM |
1214 | If Not ret && Not percpu_ref_tryget_live - try to increment a live percpu refcount*@ref: percpu_ref to try-get* Increment a percpu refcount unless it has already been killed Then ret = 1 |
1219 | If Not ret Then ret = cgroup_do_get_tree(fc) |
1226 | ret = 1 |
1229 | If Value for the false possibility is greater at compile time(ret > 0) Then |
1230 | msleep - sleep safely even with waitqueue interruptions*@msecs: Time in milliseconds to sleep for |
1231 | Return restart_syscall() |
1233 | Return ret |
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 |