Thread (290 messages) flat view 290 messages, 13 authors, 2022-04-12

Re: [dpdk-dev] [PATCH v5 02/10] eal: add thread attributes

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2021-03-30 21:14:08

On Mon, 29 Mar 2021 15:40:32 -0700
Narcisa Ana Maria Vasile [off-list ref] wrote:
+
+int
+rte_thread_attr_set_priority(rte_thread_attr_t *thread_attr,
+			     enum rte_thread_priority priority)
+{
+	if (thread_attr == NULL) {
+		RTE_LOG(DEBUG, EAL,
+			"Unable to set priority attribute, invalid parameter\n");
+		return EINVAL;
+	}
+
+	thread_attr->priority = priority;
+	return 0;
+}
For Linux, shouldn't this be ENOTSUPP since not supported.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help