You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Read a single AFU event from the main AFU descriptor.
282
+
*
283
+
* An AFU may report OpenCAPI events independently from it's IRQs. When an event is
284
+
* available, as notified by the descriptor returned by ocxl_afu_get_event_fd()
285
+
* triggering a poll() or select(), this function will extract the information
286
+
* and notify the caller if there are any further events to be queried.
287
+
*
288
+
* If an event is available and should be handled by the caller,
289
+
* OCXL_EVENT_ACTION_SUCCESS is returned, and the event struct populated. The event struct
290
+
* should be parsed by first checking the type:
291
+
* Value | Action
292
+
* ------------------------------ | -------
293
+
* OCXL_EVENT_IRQ | This value cannot be generated by this function
294
+
* OCXL_EVENT_TRANSLATION_FAULT | An OpenCAPI translation fault error has been issued, that is, the system has been unable to resolve an effective address. Events[i].translation_fault will be populated with the details of the error
295
+
*
296
+
* @see ocxl_afu_get_event_fd()
254
297
*
255
298
* @param afu the AFU to read the event from
256
-
* @param max_supported_event the id of the maximum supported kernel event, events with an ID higher than this will be ignored
299
+
* @param event_api_version the version of the event API that the caller wants to see
257
300
* @param[out] event event to populate
258
301
* @param[out] last true if this was the last event to read from the kernel for now
259
302
* @retval OCXL_EVENT_ACTION_SUCCESS if the event should be handled
260
303
* @retval OCXL_EVENT_ACTION_FAIL if the event read failed (fatal)
261
304
* @retval OCXL_EVENT_ACTION_NONE if there was no event to read
262
305
* @retval OCXL_EVENT_ACTION_IGNORE if the read was successful but should be ignored
0 commit comments