gpudev: add event notification
authorThomas Monjalon <thomas@monjalon.net>
Mon, 8 Nov 2021 18:57:58 +0000 (18:57 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 8 Nov 2021 16:20:52 +0000 (17:20 +0100)
commit18cb075631653e492791310a7a5b58dfbbddbe23
tree779e15c322bb9d5162c5ffd07a6e94a06efd578a
parent8b8036a66e3d59ffa58afb8d96fa2c73262155a7
gpudev: add event notification

Callback functions may be registered for a device event.
Callback management is per-process and not thread-safe.

The events RTE_GPU_EVENT_NEW and RTE_GPU_EVENT_DEL
are notified respectively after creation and before removal
of a device, as part of the library functions.
Some future events may be emitted from drivers.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
lib/gpudev/gpudev.c
lib/gpudev/gpudev_driver.h
lib/gpudev/rte_gpudev.h
lib/gpudev/version.map