| /kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/ |
| D | process_test_043.cpp | 35 int priority; in Testcase() local 40 priority = getpriority(PRIO_PGRP, 0); in Testcase() 44 priority = getpriority(PRIO_PGRP, 0); in Testcase() 46 ICUNIT_ASSERT_EQUAL(priority, -1, priority); in Testcase() 49 priority = getpriority(PRIO_USER, 0); in Testcase() 51 ICUNIT_ASSERT_EQUAL(priority, -1, priority); in Testcase() 55 priority = getpriority(PRIO_USER + count, 0); in Testcase() 57 ICUNIT_ASSERT_EQUAL(priority, -1, priority); in Testcase() 60 priority = setpriority(PRIO_USER + count, getpid(), currProcessPri); in Testcase() 62 ICUNIT_ASSERT_EQUAL(priority, -1, priority); in Testcase() [all …]
|
| /kernel/linux/linux-6.6/include/uapi/linux/ |
| D | dcbnl.h | 42 * @prio_tc: priority assignment table mapping 8021Qp to traffic class 52 * 0 strict priority 137 * by RPs at this priority level on this Port 169 /* priority to buffer mapping */ 181 * struct cee_pg - CEE Priority-Group managed object 187 * @pg_bw: bandwidth percentage for each priority group 188 * @prio_pg: priority to PG mapping indexed by priority 229 * @priority: 3-bit unsigned integer indicating priority for IEEE 230 * 8-bit 802.1p user priority bitmap for CEE 249 __u8 priority; member [all …]
|
| /kernel/linux/linux-5.10/include/uapi/linux/ |
| D | dcbnl.h | 42 * @prio_tc: priority assignment table mapping 8021Qp to traffic class 52 * 0 strict priority 137 * by RPs at this priority level on this Port 169 /* priority to buffer mapping */ 181 * struct cee_pg - CEE Priority-Group managed object 187 * @pg_bw: bandwidth percentage for each priority group 188 * @prio_pg: priority to PG mapping indexed by priority 226 * @priority: 3-bit unsigned integer indicating priority for IEEE 227 * 8-bit 802.1p user priority bitmap for CEE 246 __u8 priority; member [all …]
|
| /kernel/linux/linux-5.10/arch/loongarch/kvm/ |
| D | interrupt.c | 31 static int _kvm_irq_deliver(struct kvm_vcpu *vcpu, unsigned int priority) in _kvm_irq_deliver() argument 35 clear_bit(priority, &vcpu->arch.irq_pending); in _kvm_irq_deliver() 36 if (priority < LOONGARCH_EXC_MAX) in _kvm_irq_deliver() 37 irq = int_to_coreint[priority]; in _kvm_irq_deliver() 39 switch (priority) { in _kvm_irq_deliver() 65 static int _kvm_irq_clear(struct kvm_vcpu *vcpu, unsigned int priority) in _kvm_irq_clear() argument 69 clear_bit(priority, &vcpu->arch.irq_clear); in _kvm_irq_clear() 70 if (priority < LOONGARCH_EXC_MAX) in _kvm_irq_clear() 71 irq = int_to_coreint[priority]; in _kvm_irq_clear() 73 switch (priority) { in _kvm_irq_clear() [all …]
|
| /kernel/liteos_a/kernel/base/sched/ |
| D | los_priority.c | 126 STATIC INLINE UINT32 TimeSliceCalculate(HPFRunqueue *rq, UINT16 basePrio, UINT16 priority) in TimeSliceCalculate() argument 132 readyTasks = queueList->readyTasks[priority]; in TimeSliceCalculate() 140 …NLINE VOID PriQueHeadInsert(HPFRunqueue *rq, UINT32 basePrio, LOS_DL_LIST *priQue, UINT32 priority) in PriQueHeadInsert() argument 148 * and at the same time would be deleted from priority queue or in PriQueHeadInsert() 157 if (LOS_ListEmpty(&priQueList[priority])) { in PriQueHeadInsert() 158 *bitmap |= PRIQUEUE_PRIOR0_BIT >> priority; in PriQueHeadInsert() 161 LOS_ListHeadInsert(&priQueList[priority], priQue); in PriQueHeadInsert() 162 queueList->readyTasks[priority]++; in PriQueHeadInsert() 165 …NLINE VOID PriQueTailInsert(HPFRunqueue *rq, UINT32 basePrio, LOS_DL_LIST *priQue, UINT32 priority) in PriQueTailInsert() argument 173 * and at the same time would be deleted from priority queue or in PriQueTailInsert() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/i915/ |
| D | i915_scheduler_types.h | 21 * @priority: execution and service priority 26 * @priority will be executed before those with a lower @priority 29 * The &drm_i915_private.kernel_context is assigned the lowest priority. 31 int priority; member 51 * dynamic priority changes. 57 * is put to the back of its priority queue, then reshuffling its dependents). 97 * A schedule engine represents a submission queue with different priority 112 * @lock: protects requests in priority lists, requests, hold and 133 * @default_priolist: priority list for I915_PRIORITY_NORMAL 138 * @queue_priority_hint: Highest pending priority. [all …]
|
| /kernel/liteos_a/testsuites/kernel/sample/kernel_base/ipc/mux/full/ |
| D | It_los_mutex_026.c | 55 UINT16 priority = LOS_TaskPriGet(OsCurrTaskGet()->taskID); in TaskDFunc() local 56 ICUNIT_ASSERT_EQUAL_VOID(priority, 2, priority); // 2, here assert the result. in TaskDFunc() 77 UINT16 priority = LOS_TaskPriGet(OsCurrTaskGet()->taskID); in TaskCFunc() local 78 ICUNIT_ASSERT_EQUAL_VOID(priority, 3, priority); // 3, here assert the result. in TaskCFunc() 101 UINT16 priority = LOS_TaskPriGet(OsCurrTaskGet()->taskID); in TaskBFunc() local 102 ICUNIT_ASSERT_EQUAL_VOID(priority, 5, priority); // 5, here assert the result. in TaskBFunc() 121 task1.usTaskPrio = 5; // 5, set reasonable priority. in TaskAFunc() 139 task2.usTaskPrio = 3; // 3, set reasonable priority. in TaskAFunc() 156 task3.usTaskPrio = 2; // 2, set reasonable priority. in TaskAFunc() 173 UINT16 priority = LOS_TaskPriGet(OsCurrTaskGet()->taskID); in TaskAFunc() local [all …]
|
| /kernel/linux/linux-5.10/arch/mips/kvm/ |
| D | interrupt.c | 24 void kvm_mips_queue_irq(struct kvm_vcpu *vcpu, unsigned int priority) in kvm_mips_queue_irq() argument 26 set_bit(priority, &vcpu->arch.pending_exceptions); in kvm_mips_queue_irq() 29 void kvm_mips_dequeue_irq(struct kvm_vcpu *vcpu, unsigned int priority) in kvm_mips_dequeue_irq() argument 31 clear_bit(priority, &vcpu->arch.pending_exceptions); in kvm_mips_dequeue_irq() 77 /* Deliver the interrupt of the corresponding priority, if possible. */ 78 int kvm_mips_irq_deliver_cb(struct kvm_vcpu *vcpu, unsigned int priority, in kvm_mips_irq_deliver_cb() argument 87 if (priority == MIPS_EXC_MAX) in kvm_mips_irq_deliver_cb() 90 ie = 1 << (kvm_priority_to_irq[priority] + 8); in kvm_mips_irq_deliver_cb() 125 clear_bit(priority, &vcpu->arch.pending_exceptions); in kvm_mips_irq_deliver_cb() 131 int kvm_mips_irq_clear_cb(struct kvm_vcpu *vcpu, unsigned int priority, in kvm_mips_irq_clear_cb() argument [all …]
|
| /kernel/linux/linux-5.10/Documentation/locking/ |
| D | rt-mutex-design.rst | 16 The goal of this document is to help others understand the priority 21 Unbounded Priority Inversion 24 Priority inversion is when a lower priority process executes while a higher 25 priority process wants to run. This happens for several reasons, and 26 most of the time it can't be helped. Anytime a high priority process wants 27 to use a resource that a lower priority process has (a mutex for example), 28 the high priority process must wait until the lower priority process is done 29 with the resource. This is a priority inversion. What we want to prevent 30 is something called unbounded priority inversion. That is when the high 31 priority process is prevented from running by a lower priority process for [all …]
|
| D | rt-mutex.rst | 5 RT-mutexes with priority inheritance are used to support PI-futexes, 6 which enable pthread_mutex_t priority inheritance attributes 16 RT-mutexes extend the semantics of simple mutexes by the priority 19 A low priority owner of a rt-mutex inherits the priority of a higher 20 priority waiter until the rt-mutex is released. If the temporarily 21 boosted owner blocks on a rt-mutex itself it propagates the priority 23 priority boosting is immediately removed once the rt_mutex has been 27 mutexes which protect shared resources. Priority inheritance is not a 30 an high priority thread, without losing determinism. 33 priority order. For same priorities FIFO order is chosen. For each [all …]
|
| /kernel/linux/linux-6.6/Documentation/locking/ |
| D | rt-mutex-design.rst | 16 The goal of this document is to help others understand the priority 21 Unbounded Priority Inversion 24 Priority inversion is when a lower priority process executes while a higher 25 priority process wants to run. This happens for several reasons, and 26 most of the time it can't be helped. Anytime a high priority process wants 27 to use a resource that a lower priority process has (a mutex for example), 28 the high priority process must wait until the lower priority process is done 29 with the resource. This is a priority inversion. What we want to prevent 30 is something called unbounded priority inversion. That is when the high 31 priority process is prevented from running by a lower priority process for [all …]
|
| D | rt-mutex.rst | 5 RT-mutexes with priority inheritance are used to support PI-futexes, 6 which enable pthread_mutex_t priority inheritance attributes 16 RT-mutexes extend the semantics of simple mutexes by the priority 19 A low priority owner of a rt-mutex inherits the priority of a higher 20 priority waiter until the rt-mutex is released. If the temporarily 21 boosted owner blocks on a rt-mutex itself it propagates the priority 23 priority boosting is immediately removed once the rt_mutex has been 27 mutexes which protect shared resources. Priority inheritance is not a 30 an high priority thread, without losing determinism. 33 priority order. For same priorities FIFO order is chosen. For each [all …]
|
| /kernel/liteos_m/testsuites/sample/kernel/mux/ |
| D | It_los_mutex_026.c | 53 // 3, Here, assert that priority is equal to 3. in TaskFuncC() 54 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 3, g_losTask.runTask->priority); in TaskFuncC() 78 // 5, Here, assert that priority is equal to 5. in TaskFuncB() 79 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 5, g_losTask.runTask->priority); in TaskFuncB() 98 // 5, Set the priority according to the task purpose,a smaller number means a higher priority. in TaskFuncA() 116 // 3, Set the priority according to the task purpose,a smaller number means a higher priority. in TaskFuncA() 141 // 10, Here, assert that priority is equal to 10. in TaskFuncA() 142 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 10, g_losTask.runTask->priority); in TaskFuncA() 152 // 25, Here, assert that priority is equal to 25. in Testcase() 153 ICUNIT_ASSERT_EQUAL(g_losTask.runTask->priority, 25, g_losTask.runTask->priority); in Testcase() [all …]
|
| D | It_los_mutex_034.c | 53 // 5, Here, assert that priority is equal to 5. in TaskFuncC() 54 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 5, g_losTask.runTask->priority); in TaskFuncC() 74 // 8, Here, assert that priority is equal to 8. in TaskFuncB() 75 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 8, g_losTask.runTask->priority); in TaskFuncB() 92 // 8, Set the priority according to the task purpose,a smaller number means a higher priority. in TaskFuncA() 102 // 5, Set the priority according to the task purpose,a smaller number means a higher priority. in TaskFuncA() 116 // 10, Here, assert that priority is equal to 10. in TaskFuncA() 117 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 10, g_losTask.runTask->priority); in TaskFuncA() 132 // 10, Set the priority according to the task purpose,a smaller number means a higher priority. in Testcase() 147 // 25, Here, assert that priority is equal to 25. in Testcase() [all …]
|
| D | It_los_mutex_033.c | 51 // 5, Here, assert that priority is equal to 5. in TaskFuncC() 52 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 5, g_losTask.runTask->priority); in TaskFuncC() 72 // 8, Here, assert that priority is equal to 8. in TaskFuncB() 73 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 8, g_losTask.runTask->priority); in TaskFuncB() 94 // 8, Set the priority according to the task purpose,a smaller number means a higher priority. in TaskFuncA() 104 // 5, Set the priority according to the task purpose,a smaller number means a higher priority. in TaskFuncA() 118 // 10, Here, assert that priority is equal to 10. in TaskFuncA() 119 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 10, g_losTask.runTask->priority); in TaskFuncA() 134 // 10, Set the priority according to the task purpose,a smaller number means a higher priority. in Testcase() 150 // 25, Here, assert that priority is equal to 25. in Testcase() [all …]
|
| D | It_los_mutex_027.c | 52 // 3, Here, assert that priority is equal to 3. in TaskFuncC() 53 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 3, g_losTask.runTask->priority); in TaskFuncC() 73 // 5, Here, assert that priority is equal to 5. in TaskFuncB() 74 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 5, g_losTask.runTask->priority); in TaskFuncB() 91 // 5, Set the priority according to the task purpose,a smaller number means a higher priority. in TaskFuncA() 101 // 3, Set the priority according to the task purpose,a smaller number means a higher priority. in TaskFuncA() 118 // 10, Here, assert that priority is equal to 10. in TaskFuncA() 119 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 10, g_losTask.runTask->priority); in TaskFuncA() 135 // 10, Set the priority according to the task purpose,a smaller number means a higher priority. in Testcase() 144 // 25, Here, assert that priority is equal to 25. in Testcase() [all …]
|
| D | It_los_mutex_031.c | 51 // 3, Here, assert that priority is equal to 3. in TaskFuncC() 52 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 3, g_losTask.runTask->priority); in TaskFuncC() 70 // 5, Here, assert that priority is equal to 5. in TaskFuncB() 71 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 5, g_losTask.runTask->priority); in TaskFuncB() 92 // 5, Set the priority according to the task purpose,a smaller number means a higher priority. in TaskFuncA() 102 // 3, Set the priority according to the task purpose,a smaller number means a higher priority. in TaskFuncA() 121 // 10, Here, assert that priority is equal to 10. in TaskFuncA() 122 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 10, g_losTask.runTask->priority); in TaskFuncA() 141 // 10, Set the priority according to the task purpose,a smaller number means a higher priority. in Testcase() 157 // 25, Here, assert that priority is equal to 25. in Testcase() [all …]
|
| /kernel/uniproton/src/core/kernel/task/ |
| D | prt_amp_task_internal.h | 29 TskPrior priority; in OsGetReadyList() local 34 priority = tsk->priority; in OsGetReadyList() 36 readyList = &runQue->readyList[priority]; in OsGetReadyList() 44 *tskReadyListBitMap |= OS_SET_RDY_TSK_BIT_MAP(priority); in OsGetReadyList() 47 tskChildBitMap[priority >> OS_TSK_PRIO_BIT_MAP_POW] |= OS_SET_CHILD_BIT_MAP(priority); in OsGetReadyList() 73 TskPrior priority; in OsDequeueTaskAmp() local 78 priority = tsk->priority; in OsDequeueTaskAmp() 79 readyList = &runQue->readyList[priority]; in OsDequeueTaskAmp() 90 tskChildBitMap[priority >> OS_TSK_PRIO_BIT_MAP_POW] &= OS_CLR_CHILD_BIT_MAP(priority); in OsDequeueTaskAmp() 93 if (tskChildBitMap[priority >> OS_TSK_PRIO_BIT_MAP_POW] == 0) { in OsDequeueTaskAmp() [all …]
|
| /kernel/linux/linux-5.10/samples/bpf/ |
| D | test_cgrp2_sock.sh | 96 check_sock "dev , mark 0, priority 0" "No programs attached" 97 check_sock6 "dev , mark 0, priority 0" "No programs attached" 105 check_sock "dev cgrp2_sock, mark 0, priority 0" "Device set" 106 check_sock6 "dev cgrp2_sock, mark 0, priority 0" "Device set" 114 check_sock "dev , mark 666, priority 0" "Mark set" 115 check_sock6 "dev , mark 666, priority 0" "Mark set" 117 # verify priority is set 121 cleanup_and_exit 1 "Failed to install program to set priority" 123 check_sock "dev , mark 0, priority 123" "Priority set" 124 check_sock6 "dev , mark 0, priority 123" "Priority set" [all …]
|
| /kernel/linux/linux-6.6/samples/bpf/ |
| D | test_cgrp2_sock.sh | 98 check_sock "dev , mark 0, priority 0" "No programs attached" 99 check_sock6 "dev , mark 0, priority 0" "No programs attached" 107 check_sock "dev cgrp2_sock, mark 0, priority 0" "Device set" 108 check_sock6 "dev cgrp2_sock, mark 0, priority 0" "Device set" 116 check_sock "dev , mark 666, priority 0" "Mark set" 117 check_sock6 "dev , mark 666, priority 0" "Mark set" 119 # verify priority is set 123 cleanup_and_exit 1 "Failed to install program to set priority" 125 check_sock "dev , mark 0, priority 123" "Priority set" 126 check_sock6 "dev , mark 0, priority 123" "Priority set" [all …]
|
| /kernel/liteos_m/testsuites/unittest/xts/cmsis/ |
| D | cmsis_task_func_test.c | 126 osAttr.priority = osPriorityAboveNormal1; in CmsisThreadCreat004Func001() 279 osAttr.priority = g_threadPriority; in CmsisThreadYieldFunc001() 308 osAttr.priority = osPriorityNormal7; in CmsisThreadYieldFunc003() 347 osAttr.priority = osPriorityAboveNormal; in CmsisThreadResumeFunc001() 390 osAttr.priority = osPriorityAboveNormal; in CmsisThreadGetCountFunc001() 429 osAttr.priority = osPriorityNormal; 461 osAttr.priority = osPriorityLow1; 468 osAttr.priority = osPriorityAboveNormal; 496 osAttr.priority = osPriorityAboveNormal; 508 osAttr1.priority = osPriorityAboveNormal; [all …]
|
| /kernel/linux/linux-6.6/arch/mips/kvm/ |
| D | interrupt.c | 28 unsigned int priority; in kvm_mips_deliver_interrupts() local 33 priority = __ffs(*pending_clr); in kvm_mips_deliver_interrupts() 34 while (priority <= MIPS_EXC_MAX) { in kvm_mips_deliver_interrupts() 35 kvm_mips_callbacks->irq_clear(vcpu, priority, cause); in kvm_mips_deliver_interrupts() 37 priority = find_next_bit(pending_clr, in kvm_mips_deliver_interrupts() 39 priority + 1); in kvm_mips_deliver_interrupts() 42 priority = __ffs(*pending); in kvm_mips_deliver_interrupts() 43 while (priority <= MIPS_EXC_MAX) { in kvm_mips_deliver_interrupts() 44 kvm_mips_callbacks->irq_deliver(vcpu, priority, cause); in kvm_mips_deliver_interrupts() 46 priority = find_next_bit(pending, in kvm_mips_deliver_interrupts() [all …]
|
| /kernel/linux/linux-6.6/Documentation/userspace-api/media/v4l/ |
| D | vidioc-g-priority.rst | 13 VIDIOC_G_PRIORITY - VIDIOC_S_PRIORITY - Query or request the access priority associated with a file… 38 To query the current access priority applications call the 40 variable where the driver stores the current priority. 42 To request an access priority applications store the desired priority in 60 - Lowest priority, usually applications running in background, for 63 read from a device at this priority. 69 - Medium priority, usually applications started and interactively 72 controls. This is the default priority unless an application 76 - Highest priority. Only one file descriptor can have this priority, 88 The requested priority value is invalid. [all …]
|
| /kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/ |
| D | vidioc-g-priority.rst | 13 VIDIOC_G_PRIORITY - VIDIOC_S_PRIORITY - Query or request the access priority associated with a file… 38 To query the current access priority applications call the 40 variable where the driver stores the current priority. 42 To request an access priority applications store the desired priority in 60 - Lowest priority, usually applications running in background, for 63 read from a device at this priority. 69 - Medium priority, usually applications started and interactively 72 controls. This is the default priority unless an application 76 - Highest priority. Only one file descriptor can have this priority, 88 The requested priority value is invalid. [all …]
|
| /kernel/linux/linux-6.6/net/mac80211/ |
| D | wme.c | 36 switch (skb->priority) { in wme_downgrade_ac() 39 skb->priority = 5; /* VO -> VI */ in wme_downgrade_ac() 43 skb->priority = 3; /* VI -> BE */ in wme_downgrade_ac() 47 skb->priority = 2; /* BE -> BK */ in wme_downgrade_ac() 90 while (sdata->wmm_acm & BIT(skb->priority)) { in ieee80211_downgrade_queue() 91 int ac = ieee802_1d_to_ac[skb->priority]; in ieee80211_downgrade_queue() 94 skb->priority == ifmgd->tx_tspec[ac].up) in ieee80211_downgrade_queue() 109 if (sta && sta->reserved_tid == skb->priority) in ieee80211_downgrade_queue() 110 skb->priority = ieee80211_fix_reserved_tid(skb->priority); in ieee80211_downgrade_queue() 113 return ieee802_1d_to_ac[skb->priority]; in ieee80211_downgrade_queue() [all …]
|