Whamcloud - gitweb
LU-13005 lnet: eq: discard struct lnet_handle_eq
[fs/lustre-release.git] / lnet / include / lnet / api.h
index f84016a..d89294a 100644 (file)
@@ -140,7 +140,7 @@ int LNetMDUnlink(struct lnet_handle_md md_in);
  * associated with it. If an event handler exists, it will be run for each
  * event that is deposited into the EQ.
  *
- * In addition to the struct lnet_handle_eq, the LNet API defines two types
+ * In addition to the struct lnet_eq, the LNet API defines two types
  * associated with events: The ::lnet_event_kind defines the kinds of events
  * that can be stored in an EQ. The struct lnet_event defines a structure that
  * holds the information about with an event.
@@ -150,17 +150,17 @@ int LNetMDUnlink(struct lnet_handle_md md_in);
  * releases these resources and free the EQ.  LNetEQPoll() can be used
  * to test or wait on multiple EQs.
  * @{ */
-int LNetEQAlloc(unsigned int      count_in,
-               lnet_eq_handler_t  handler,
-               struct lnet_handle_eq *handle_out);
+struct lnet_eq *
+LNetEQAlloc(unsigned int count_in,
+           lnet_eq_handler_t handler);
 
-int LNetEQFree(struct lnet_handle_eq eventq_in);
+int LNetEQFree(struct lnet_eq *eventq_in);
 
-int LNetEQPoll(struct lnet_handle_eq *eventqs_in,
-              int               neq_in,
-              signed long       timeout,
+int LNetEQPoll(struct lnet_eq **eventqs_in,
+              int neq_in,
+              signed long timeout,
               struct lnet_event *event_out,
-              int              *which_eq_out);
+              int *which_eq_out);
 /** @} lnet_eq */
 
 /** \defgroup lnet_data Data movement operations