Function report |
Source Code:kernel\cgroup\cgroup.c |
Create Date:2022-07-28 11:11:21 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:group_can_fork - called on a new task before the process is exposed*@child: the task in question.* This calls the subsystem can_fork() callbacks. If the can_fork() callback* returns an error, the fork aborts with that error code. This allows for
Proto:int cgroup_can_fork(struct task_struct *child)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct task_struct * | child |
5881 | Do |
5881 | __ss_mask = have_canfork_callback |
5881 | If Not CGROUP_SUBSYS_COUNT Then |
5881 | i = 0 |
5881 | Break |
5881 | When i < CGROUP_SUBSYS_COUNT cycle |
5881 | ss = cgroup_subsys[i] |
5883 | If ret Then Go to out_revert |
5885 | When (false) cycle |
5887 | Return 0 |
5889 | out_revert : |
5893 | If cancel_fork Then cancel_fork(child) |
5897 | 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 |