Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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).
68  If Not ag Then Go to out_fail
71  tg = sched_create_group( & root_task_group)
72  If IS_ERR(tg) Then Go to out_free
75  kref_init - initialize object.*@kref: object in question.
76  init_rwsem( & lock)
77  id = atomic_inc_return( & autogroup_seq_nr)
78  tg = tg
91  autogroup = ag
93  sched_online_group(tg, & root_task_group)
94  Return ag
96  out_free :
97  free previously allocated memory
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)
Caller
NameDescribe
sched_autogroup_create_attachAllocates GFP_KERNEL, cannot be called under any spinlock: