Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\rt.c Create Date:2022-07-28 09:39:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__enqueue_rt_entity

Proto:static void __enqueue_rt_entity(struct sched_rt_entity *rt_se, unsigned int flags)

Type:void

Parameter:

TypeParameterName
struct sched_rt_entity *rt_se
unsigned intflags
1233  rt_rq = rt_rq_of_se(rt_se)
1234  array = active
1235  group_rq = group_rt_rq(rt_se)
1236  queue = queue + rt_se_prio(rt_se)
1244  If group_rq && (rt_rq_throttled(group_rq) || Not rt_nr_running ) Then
1245  If on_list Then __delist_rt_entity(rt_se, array)
1247  Return
1250  If Change rt_se->run_list location unless SAVE && !MOVE* assumes ENQUEUE/DEQUEUE flags match Then
1251  WARN_ON_ONCE(on_list)
1252  If flags & ENQUEUE_HEAD Then list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
1254  Else list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
1257  __set_bit - Set a bit in memory*@nr: the bit to set*@addr: the address to start counting from* Unlike set_bit(), this function is non-atomic. If it is called on the same* region of memory concurrently, the effect may be that only one operation* succeeds.
1258  on_list = 1
1260  on_rq = 1
1262  inc_rt_tasks(rt_se, rt_rq)
Caller
NameDescribe
enqueue_rt_entity
dequeue_rt_entity