* - 0 on success.
* - (<0) on failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_mp_action_register(const char *name, rte_mp_t action);
/**
* not want to response the messages from the corresponding component in its
* primary process or secondary processes.
*
+ * @note IPC may be unsupported in certain circumstances, so caller should check
+ * for ENOTSUP error.
+ *
* @param name
* The name argument plays as the nonredundant key to find the action.
*
*/
-void __rte_experimental
+__rte_experimental
+void
rte_mp_action_unregister(const char *name);
/**
* - On success, return 0.
* - On failure, return -1, and the reason will be stored in rte_errno.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_mp_sendmsg(struct rte_mp_msg *msg);
/**
* @note This API must not be used inside memory-related or IPC callbacks, and
* no memory allocations should take place inside such callback.
*
+ * @note IPC may be unsupported in certain circumstances, so caller should check
+ * for ENOTSUP error.
+ *
* @param req
* The req argument contains the customized request message.
*
* - On success, return 0.
* - On failure, return -1, and the reason will be stored in rte_errno.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_mp_request_sync(struct rte_mp_msg *req, struct rte_mp_reply *reply,
const struct timespec *ts);
* This function sends a request message to the peer process, and will not
* block. Instead, reply will be received in a separate callback.
*
+ * @note IPC may be unsupported in certain circumstances, so caller should check
+ * for ENOTSUP error.
+ *
* @param req
* The req argument contains the customized request message.
*
* - On success, return 0.
* - On failure, return -1, and the reason will be stored in rte_errno.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_mp_request_async(struct rte_mp_msg *req, const struct timespec *ts,
rte_mp_async_reply_t clb);
* - On success, return 0.
* - On failure, return -1, and the reason will be stored in rte_errno.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_mp_reply(struct rte_mp_msg *msg, const char *peer);
-/**
- * Register all mp action callbacks for hotplug.
- *
- * @return
- * 0 on success, negative on error.
- */
-int __rte_experimental
-rte_mp_dev_hotplug_init(void);
-
/**
* Usage function typedef used by the application usage function.
*