Thread (8 messages) 8 messages, 4 authors, 2021-04-08

[dpdk-dev] [PATCH 1/2] timer: clarify subsystem_init return value

From: Michal Krawczyk <hidden>
Date: 2021-03-26 10:48:16
Subsystem: library code, the rest · Maintainers: Andrew Morton, Linus Torvalds

From: Stanislaw Kardach <redacted>

rte_timer_subsystem_init() may return -EALREADY if it has been already
initialized. Therefore put explicitly into doxygen that this is not a
failure for the application.

Signed-off-by: Stanislaw Kardach <redacted>
Reviewed-by: Michal Krawczyk <redacted>
---
 lib/librte_timer/rte_timer.h | 1 +
 1 file changed, 1 insertion(+)
diff --git a/lib/librte_timer/rte_timer.h b/lib/librte_timer/rte_timer.h
index 22a27aa08d..0f820555c0 100644
--- a/lib/librte_timer/rte_timer.h
+++ b/lib/librte_timer/rte_timer.h
@@ -171,6 +171,7 @@ int rte_timer_data_dealloc(uint32_t id);
  *   - 0: Success
  *   - -ENOMEM: Unable to allocate memory needed to initialize timer
  *      subsystem
+ *   - -EALREADY: timer subsystem was already initialized. Not an error.
  */
 int rte_timer_subsystem_init(void);
 
-- 
2.25.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help