Home
last modified time | relevance | path

Searched full:priority (Results 1 – 25 of 4079) sorted by relevance

12345678910>>...164

/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/
Dprocess_test_043.cpp35 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-4.19/include/uapi/linux/
Ddcbnl.h42 * @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/include/uapi/linux/
Ddcbnl.h42 * @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/mips/kvm/
Dinterrupt.c24 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-4.19/Documentation/locking/
Drt-mutex.txt4 RT-mutexes with priority inheritance are used to support PI-futexes,
5 which enable pthread_mutex_t priority inheritance attributes
15 RT-mutexes extend the semantics of simple mutexes by the priority
18 A low priority owner of a rt-mutex inherits the priority of a higher
19 priority waiter until the rt-mutex is released. If the temporarily
20 boosted owner blocks on a rt-mutex itself it propagates the priority
22 priority boosting is immediately removed once the rt_mutex has been
26 mutexes which protect shared resources. Priority inheritance is not a
29 an high priority thread, without losing determinism.
32 priority order. For same priorities FIFO order is chosen. For each
[all …]
Drt-mutex-design.txt15 The goal of this document is to help others understand the priority
20 Unbounded Priority Inversion
23 Priority inversion is when a lower priority process executes while a higher
24 priority process wants to run. This happens for several reasons, and
25 most of the time it can't be helped. Anytime a high priority process wants
26 to use a resource that a lower priority process has (a mutex for example),
27 the high priority process must wait until the lower priority process is done
28 with the resource. This is a priority inversion. What we want to prevent
29 is something called unbounded priority inversion. That is when the high
30 priority process is prevented from running by a lower priority process for
[all …]
/kernel/linux/linux-5.10/Documentation/locking/
Drt-mutex-design.rst16 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 …]
Drt-mutex.rst5 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/
DIt_los_mutex_026.c53 // 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 …]
DIt_los_mutex_033.c51 // 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 …]
DIt_los_mutex_034.c53 // 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 …]
DIt_los_mutex_027.c52 // 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 …]
DIt_los_mutex_030.c51 // 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()
67 // 5, Here, assert that priority is equal to 5. in TaskFuncB()
68 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 5, g_losTask.runTask->priority); in TaskFuncB()
85 // 5, Set the priority according to the task purpose,a smaller number means a higher priority. in TaskFuncA()
95 // 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()
132 // 10, Set the priority according to the task purpose,a smaller number means a higher priority. in Testcase()
145 // 25, Here, assert that priority is equal to 25. in Testcase()
[all …]
DIt_los_mutex_031.c51 // 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 …]
DIt_los_mutex_029.c52 // 2, Here, assert that priority is equal to 2. in TaskFuncD()
53 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 2, g_losTask.runTask->priority); in TaskFuncD()
73 // 5, Here, assert that priority is equal to 5. in TaskFuncC()
74 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 5, g_losTask.runTask->priority); in TaskFuncC()
90 // 5, Set the priority according to the task purpose,a smaller number means a higher priority. in TaskFuncA()
106 // 2, Set the priority according to the task purpose,a smaller number means a higher priority. in TaskFuncA()
124 // 10, Here, assert that priority is equal to 10. in TaskFuncA()
125 ICUNIT_ASSERT_EQUAL_VOID(g_losTask.runTask->priority, 10, g_losTask.runTask->priority); in TaskFuncA()
139 // 10, Set the priority according to the task purpose,a smaller number means a higher priority. in Testcase()
153 // 25, Here, assert that priority is equal to 25. in Testcase()
[all …]
/kernel/linux/linux-5.10/samples/bpf/
Dtest_cgrp2_sock.sh96 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-4.19/samples/bpf/
Dtest_cgrp2_sock.sh96 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-4.19/arch/mips/kvm/
Dinterrupt.c24 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()
114 /* Deliver the interrupt of the corresponding priority, if possible. */
115 int kvm_mips_irq_deliver_cb(struct kvm_vcpu *vcpu, unsigned int priority, in kvm_mips_irq_deliver_cb() argument
124 switch (priority) { in kvm_mips_irq_deliver_cb()
192 clear_bit(priority, &vcpu->arch.pending_exceptions); in kvm_mips_irq_deliver_cb()
198 int kvm_mips_irq_clear_cb(struct kvm_vcpu *vcpu, unsigned int priority, in kvm_mips_irq_clear_cb() argument
208 unsigned int priority; in kvm_mips_deliver_interrupts() local
[all …]
/kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/
Dvidioc-g-priority.rst13 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-4.19/Documentation/media/uapi/v4l/
Dvidioc-g-priority.rst12 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
61 - Lowest priority, usually applications running in background, for
64 read from a device at this priority.
70 - Medium priority, usually applications started and interactively
73 controls. This is the default priority unless an application
77 - Highest priority. Only one file descriptor can have this priority,
90 The requested priority value is invalid.
[all …]
/kernel/linux/linux-5.10/net/mac80211/
Dwme.c35 switch (skb->priority) { in wme_downgrade_ac()
38 skb->priority = 5; /* VO -> VI */ in wme_downgrade_ac()
42 skb->priority = 3; /* VI -> BE */ in wme_downgrade_ac()
46 skb->priority = 2; /* BE -> BK */ in wme_downgrade_ac()
89 while (sdata->wmm_acm & BIT(skb->priority)) { in ieee80211_downgrade_queue()
90 int ac = ieee802_1d_to_ac[skb->priority]; in ieee80211_downgrade_queue()
93 skb->priority == ifmgd->tx_tspec[ac].up) in ieee80211_downgrade_queue()
108 if (sta && sta->reserved_tid == skb->priority) in ieee80211_downgrade_queue()
109 skb->priority = ieee80211_fix_reserved_tid(skb->priority); in ieee80211_downgrade_queue()
112 return ieee802_1d_to_ac[skb->priority]; in ieee80211_downgrade_queue()
[all …]
/kernel/linux/linux-4.19/net/mac80211/
Dwme.c38 switch (skb->priority) { in wme_downgrade_ac()
41 skb->priority = 5; /* VO -> VI */ in wme_downgrade_ac()
45 skb->priority = 3; /* VI -> BE */ in wme_downgrade_ac()
49 skb->priority = 2; /* BE -> BK */ in wme_downgrade_ac()
92 while (sdata->wmm_acm & BIT(skb->priority)) { in ieee80211_downgrade_queue()
93 int ac = ieee802_1d_to_ac[skb->priority]; in ieee80211_downgrade_queue()
96 skb->priority == ifmgd->tx_tspec[ac].up) in ieee80211_downgrade_queue()
111 if (sta && sta->reserved_tid == skb->priority) in ieee80211_downgrade_queue()
112 skb->priority = ieee80211_fix_reserved_tid(skb->priority); in ieee80211_downgrade_queue()
115 return ieee802_1d_to_ac[skb->priority]; in ieee80211_downgrade_queue()
[all …]
/kernel/linux/linux-4.19/Documentation/virtual/kvm/devices/
Dxics.txt26 * Pending interrupt priority, 8 bits
27 Zero is the highest priority, 255 means no interrupt is pending.
29 * Pending IPI (inter-processor interrupt) priority, 8 bits
30 Zero is the highest priority, 255 means no IPI is pending.
35 * Current processor priority, 8 bits
36 Zero is the highest priority, meaning no interrupts can be
37 delivered, and 255 is the lowest priority.
49 * Priority, 8 bits
50 This is the priority specified for this interrupt source, where 0 is
51 the highest priority and 255 is the lowest. An interrupt with a
[all …]
/kernel/linux/linux-4.19/arch/arm/mach-ks8695/include/mach/
Dregs-irq.h28 #define KS8695_INTPW (0x0c) /* Interrupt Priority (WAN MAC) */
29 #define KS8695_INTPH (0x10) /* Interrupt Priority (HPNA) [KS8695 only] */
30 #define KS8695_INTPL (0x14) /* Interrupt Priority (LAN MAC) */
31 #define KS8695_INTPT (0x18) /* Interrupt Priority (Timer) */
32 #define KS8695_INTPU (0x1c) /* Interrupt Priority (UART) */
33 #define KS8695_INTPE (0x20) /* Interrupt Priority (External Interrupt) */
34 #define KS8695_INTPC (0x24) /* Interrupt Priority (Communications Channel) */
35 #define KS8695_INTPBE (0x28) /* Interrupt Priority (Bus Error Response) */
37 #define KS8695_INTHPF (0x30) /* Interrupt Pending Highest Priority (FIQ) */
38 #define KS8695_INTHPI (0x34) /* Interrupt Pending Highest Priority (IRQ) */
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/
DIt_posix_pthread_193.cpp50 INT32 priority = 31; in Testcase() local
62 priority = sched_get_priority_max(g_pthreadSchedPolicy); in Testcase()
63 ICUNIT_ASSERT_EQUAL(priority, -1, priority); in Testcase()
67 priority = sched_get_priority_max(g_pthreadSchedPolicy); in Testcase()
68 ICUNIT_ASSERT_EQUAL(priority, -1, priority); in Testcase()
72 priority = sched_get_priority_max(g_pthreadSchedPolicy); in Testcase()
73 ICUNIT_ASSERT_EQUAL(priority, -1, priority); in Testcase()
76 priority = 31; in Testcase()
77 param.sched_priority = priority + 1; in Testcase()

12345678910>>...164