Function report |
Source Code:kernel\sched\autogroup.c |
Create Date:2022-07-28 09:43:33 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:autogroup_create
Proto:static inline struct autogroup *autogroup_create(void)
Type:struct autogroup
Parameter:Nothing
| 65 | ag = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
| 71 | tg = sched_create_group( & root_task_group) |
| 76 | init_rwsem( & lock) |
| 77 | id = atomic_inc_return( & autogroup_seq_nr) |
| 93 | sched_online_group(tg, & root_task_group) |
| 94 | Return ag |
| 96 | out_free : |
| 98 | out_fail : |
| 99 | If printk_ratelimit() Then |
| 100 | printk(warning conditions "autogroup_create: %s failure.\n", ag ? "sched_create_group()" : "kzalloc()") |
| 104 | Return autogroup_kref_get( & autogroup_default) |
| Name | Describe |
|---|---|
| sched_autogroup_create_attach | Allocates GFP_KERNEL, cannot be called under any spinlock: |
| 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 |